bigquery

package
v2.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(config dbmate.DriverConfig) dbmate.Driver

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) CreateDatabase

func (drv *Driver) CreateDatabase() error

func (*Driver) CreateMigrationsTable

func (drv *Driver) CreateMigrationsTable(db *sql.DB) error

func (*Driver) DatabaseExists

func (drv *Driver) DatabaseExists() (bool, error)

func (*Driver) DeleteMigration

func (drv *Driver) DeleteMigration(util dbutil.Transaction, version string) error

func (*Driver) DropDatabase

func (drv *Driver) DropDatabase() error

func (*Driver) DumpSchema

func (drv *Driver) DumpSchema(db *sql.DB) ([]byte, error)

func (*Driver) InsertMigration

func (drv *Driver) InsertMigration(_ dbutil.Transaction, version string) error

func (*Driver) MigrationsTableExists

func (drv *Driver) MigrationsTableExists(db *sql.DB) (bool, error)

func (*Driver) Open

func (drv *Driver) Open() (*sql.DB, error)

func (*Driver) Ping

func (drv *Driver) Ping() error

func (*Driver) QueryError

func (*Driver) QueryError(query string, err error) error

func (*Driver) SelectMigrations

func (drv *Driver) SelectMigrations(db *sql.DB, limit int) (map[string]bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL