package dialectquery
import "github.com/pressly/goose/v3/internal/dialect/dialectquery"
Index ¶
- type Clickhouse
- func (c *Clickhouse) CreateTable() string
- func (c *Clickhouse) DeleteVersion() string
- func (c *Clickhouse) GetMigrationByVersion() string
- func (c *Clickhouse) InsertVersion() string
- func (c *Clickhouse) ListMigrations() string
- type Mysql
- func (m *Mysql) CreateTable() string
- func (m *Mysql) DeleteVersion() string
- func (m *Mysql) GetMigrationByVersion() string
- func (m *Mysql) InsertVersion() string
- func (m *Mysql) ListMigrations() string
- type Postgres
- func (p *Postgres) CreateTable() string
- func (p *Postgres) DeleteVersion() string
- func (p *Postgres) GetMigrationByVersion() string
- func (p *Postgres) InsertVersion() string
- func (p *Postgres) ListMigrations() string
- type Querier
- type Redshift
- func (r *Redshift) CreateTable() string
- func (r *Redshift) DeleteVersion() string
- func (r *Redshift) GetMigrationByVersion() string
- func (r *Redshift) InsertVersion() string
- func (r *Redshift) ListMigrations() string
- type Sqlite3
- func (s *Sqlite3) CreateTable() string
- func (s *Sqlite3) DeleteVersion() string
- func (s *Sqlite3) GetMigrationByVersion() string
- func (s *Sqlite3) InsertVersion() string
- func (s *Sqlite3) ListMigrations() string
- type Sqlserver
- func (s *Sqlserver) CreateTable() string
- func (s *Sqlserver) DeleteVersion() string
- func (s *Sqlserver) GetMigrationByVersion() string
- func (s *Sqlserver) InsertVersion() string
- func (s *Sqlserver) ListMigrations() string
- type Tidb
- func (t *Tidb) CreateTable() string
- func (t *Tidb) DeleteVersion() string
- func (t *Tidb) GetMigrationByVersion() string
- func (t *Tidb) InsertVersion() string
- func (t *Tidb) ListMigrations() string
- type Vertica
Types ¶
type Clickhouse ¶
type Clickhouse struct { Table string }
func (*Clickhouse) CreateTable ¶
func (c *Clickhouse) CreateTable() string
func (*Clickhouse) DeleteVersion ¶
func (c *Clickhouse) DeleteVersion() string
func (*Clickhouse) GetMigrationByVersion ¶
func (c *Clickhouse) GetMigrationByVersion() string
func (*Clickhouse) InsertVersion ¶
func (c *Clickhouse) InsertVersion() string
func (*Clickhouse) ListMigrations ¶
func (c *Clickhouse) ListMigrations() string
type Mysql ¶
type Mysql struct { Table string }
func (*Mysql) CreateTable ¶
func (*Mysql) DeleteVersion ¶
func (*Mysql) GetMigrationByVersion ¶
func (*Mysql) InsertVersion ¶
func (*Mysql) ListMigrations ¶
type Postgres ¶
type Postgres struct { Table string }
func (*Postgres) CreateTable ¶
func (*Postgres) DeleteVersion ¶
func (*Postgres) GetMigrationByVersion ¶
func (*Postgres) InsertVersion ¶
func (*Postgres) ListMigrations ¶
type Querier ¶
type Querier interface { // CreateTable returns the SQL query string to create the db version table. CreateTable() string // InsertVersion returns the SQL query string to insert a new version into // the db version table. InsertVersion() string // DeleteVersion returns the SQL query string to delete a version from // the db version table. DeleteVersion() string // GetMigrationByVersion returns the SQL query string to get a single // migration by version. // // The query should return the timestamp and is_applied columns. GetMigrationByVersion() string // ListMigrations returns the SQL query string to list all migrations in // descending order by id. // // The query should return the version_id and is_applied columns. ListMigrations() string }
Querier is the interface that wraps the basic methods to create a dialect specific query.
type Redshift ¶
type Redshift struct { Table string }
func (*Redshift) CreateTable ¶
func (*Redshift) DeleteVersion ¶
func (*Redshift) GetMigrationByVersion ¶
func (*Redshift) InsertVersion ¶
func (*Redshift) ListMigrations ¶
type Sqlite3 ¶
type Sqlite3 struct { Table string }
func (*Sqlite3) CreateTable ¶
func (*Sqlite3) DeleteVersion ¶
func (*Sqlite3) GetMigrationByVersion ¶
func (*Sqlite3) InsertVersion ¶
func (*Sqlite3) ListMigrations ¶
type Sqlserver ¶
type Sqlserver struct { Table string }
func (*Sqlserver) CreateTable ¶
func (*Sqlserver) DeleteVersion ¶
func (*Sqlserver) GetMigrationByVersion ¶
func (*Sqlserver) InsertVersion ¶
func (*Sqlserver) ListMigrations ¶
type Tidb ¶
type Tidb struct { Table string }
func (*Tidb) CreateTable ¶
func (*Tidb) DeleteVersion ¶
func (*Tidb) GetMigrationByVersion ¶
func (*Tidb) InsertVersion ¶
func (*Tidb) ListMigrations ¶
type Vertica ¶
type Vertica struct { Table string }
func (*Vertica) CreateTable ¶
func (*Vertica) DeleteVersion ¶
func (*Vertica) GetMigrationByVersion ¶
func (*Vertica) InsertVersion ¶
func (*Vertica) ListMigrations ¶
Source Files ¶
clickhouse.go dialectquery.go mysql.go postgres.go redshift.go sqlite3.go sqlserver.go tidb.go vertica.go
- Version
- v3.11.0
- Published
- May 2, 2023
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 10 minutes ago –
Tools for package owners.