SYMBOL INDEX (890 symbols across 188 files) FILE: cmd/goose/driver_mysql.go function normalizeDBString (line 20) | func normalizeDBString(driver string, str string, certfile string, sslce... constant tlsConfigKey (line 37) | tlsConfigKey = "custom" function normalizeMySQLDSN (line 39) | func normalizeMySQLDSN(dsn string, tls bool) (string, error) { function registerTLSConfig (line 51) | func registerTLSConfig(pemfile string, sslcert string, sslkey string) er... FILE: cmd/goose/driver_no_mysql.go function normalizeDBString (line 5) | func normalizeDBString(driver string, str string, certfile string, sslce... FILE: cmd/goose/main.go function main (line 48) | func main() { function printDrivers (line 195) | func printDrivers() { function mergeDrivers (line 208) | func mergeDrivers(drivers []string) []string { function mergeArgs (line 231) | func mergeArgs(config *envConfig, args []string) []string { function usage (line 244) | func usage() { function gooseInit (line 347) | func gooseInit(dir string) error { function gatherFilenames (line 365) | func gatherFilenames(filename string) ([]string, error) { function printValidate (line 386) | func printValidate(filename string, verbose bool) error { type envConfig (line 423) | type envConfig struct method listEnvs (line 443) | func (c *envConfig) listEnvs() []envVar { function loadEnvConfig (line 431) | func loadEnvConfig() *envConfig { type envVar (line 453) | type envVar struct function envOr (line 459) | func envOr(key, def string) string { function firstNonEmpty (line 468) | func firstNonEmpty(values ...string) string { FILE: cmd/goose/main_test.go function TestFirstNonEmpty (line 7) | func TestFirstNonEmpty(t *testing.T) { FILE: create.go type tmplVars (line 13) | type tmplVars struct function SetSequential (line 23) | func SetSequential(s bool) { function CreateWithTemplate (line 28) | func CreateWithTemplate(db *sql.DB, dir string, tmpl *template.Template,... function Create (line 84) | func Create(db *sql.DB, dir, name, migrationType string) error { FILE: create_test.go function TestSequential (line 12) | func TestSequential(t *testing.T) { FILE: database/dialect/querier.go type Querier (line 7) | type Querier interface FILE: database/dialect/querier_extended.go type QuerierExtender (line 15) | type QuerierExtender interface FILE: database/dialects.go type Dialect (line 14) | type Dialect constant DialectCustom (line 17) | DialectCustom Dialect = "" constant DialectClickHouse (line 18) | DialectClickHouse Dialect = "clickhouse" constant DialectAuroraDSQL (line 19) | DialectAuroraDSQL Dialect = "dsql" constant DialectMSSQL (line 20) | DialectMSSQL Dialect = "mssql" constant DialectMySQL (line 21) | DialectMySQL Dialect = "mysql" constant DialectPostgres (line 22) | DialectPostgres Dialect = "postgres" constant DialectRedshift (line 23) | DialectRedshift Dialect = "redshift" constant DialectSQLite3 (line 24) | DialectSQLite3 Dialect = "sqlite3" constant DialectSpanner (line 25) | DialectSpanner Dialect = "spanner" constant DialectStarrocks (line 26) | DialectStarrocks Dialect = "starrocks" constant DialectTiDB (line 27) | DialectTiDB Dialect = "tidb" constant DialectTurso (line 28) | DialectTurso Dialect = "turso" constant DialectYdB (line 29) | DialectYdB Dialect = "ydb" constant DialectVertica (line 32) | DialectVertica Dialect = "vertica" function NewStore (line 36) | func NewStore(d Dialect, tableName string) (Store, error) { function NewStoreFromQuerier (line 67) | func NewStoreFromQuerier(tableName string, querier dialect.Querier) (Sto... type store (line 80) | type store struct method Tablename (line 87) | func (s *store) Tablename() string { method CreateVersionTable (line 91) | func (s *store) CreateVersionTable(ctx context.Context, db DBTxConn) e... method Insert (line 99) | func (s *store) Insert(ctx context.Context, db DBTxConn, req InsertReq... method Delete (line 107) | func (s *store) Delete(ctx context.Context, db DBTxConn, version int64... method GetMigration (line 115) | func (s *store) GetMigration( method GetLatestVersion (line 134) | func (s *store) GetLatestVersion(ctx context.Context, db DBTxConn) (in... method ListMigrations (line 146) | func (s *store) ListMigrations( method TableExists (line 180) | func (s *store) TableExists(ctx context.Context, db DBTxConn) (bool, e... type queryController (line 196) | type queryController struct method TableExists (line 209) | func (c *queryController) TableExists(tableName string) string { function newQueryController (line 199) | func newQueryController(querier dialect.Querier) *queryController { FILE: database/sql_extended.go type DBTxConn (line 13) | type DBTxConn interface FILE: database/store.go type Store (line 26) | type Store interface type InsertRequest (line 49) | type InsertRequest struct type GetMigrationResult (line 58) | type GetMigrationResult struct type ListMigrationsResult (line 63) | type ListMigrationsResult struct FILE: database/store_extended.go type StoreExtender (line 23) | type StoreExtender interface FILE: database/store_test.go function TestDialectStore (line 20) | func TestDialectStore(t *testing.T) { function testStore (line 74) | func testStore( function runTx (line 223) | func runTx(ctx context.Context, db *sql.DB, fn func(*sql.Tx) error) (ret... function runConn (line 239) | func runConn(ctx context.Context, db *sql.DB, fn func(*sql.Conn) error) ... FILE: db.go function OpenDBWithDriver (line 10) | func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) { FILE: dialect.go constant DialectCustom (line 14) | DialectCustom Dialect = database.DialectCustom constant DialectClickHouse (line 15) | DialectClickHouse Dialect = database.DialectClickHouse constant DialectMSSQL (line 16) | DialectMSSQL Dialect = database.DialectMSSQL constant DialectMySQL (line 17) | DialectMySQL Dialect = database.DialectMySQL constant DialectPostgres (line 18) | DialectPostgres Dialect = database.DialectPostgres constant DialectRedshift (line 19) | DialectRedshift Dialect = database.DialectRedshift constant DialectSQLite3 (line 20) | DialectSQLite3 Dialect = database.DialectSQLite3 constant DialectSpanner (line 21) | DialectSpanner Dialect = database.DialectSpanner constant DialectStarrocks (line 22) | DialectStarrocks Dialect = database.DialectStarrocks constant DialectTiDB (line 23) | DialectTiDB Dialect = database.DialectTiDB constant DialectTurso (line 24) | DialectTurso Dialect = database.DialectTurso constant DialectYdB (line 25) | DialectYdB Dialect = database.DialectYdB constant DialectAuroraDSQL (line 28) | DialectAuroraDSQL Dialect = database.DialectAuroraDSQL constant DialectVertica (line 31) | DialectVertica Dialect = database.DialectVertica function init (line 34) | func init() { function SetDialect (line 41) | func SetDialect(s string) error { FILE: down.go function Down (line 10) | func Down(db *sql.DB, dir string, opts ...OptionsFunc) error { function DownContext (line 16) | func DownContext(ctx context.Context, db *sql.DB, dir string, opts ...Op... function DownTo (line 45) | func DownTo(db *sql.DB, dir string, version int64, opts ...OptionsFunc) ... function DownToContext (line 51) | func DownToContext(ctx context.Context, db *sql.DB, dir string, version ... function downToNoVersioning (line 93) | func downToNoVersioning(ctx context.Context, db *sql.DB, migrations Migr... FILE: examples/go-migrations/00001_create_users_table.sql type users (line 2) | CREATE TABLE users ( FILE: examples/go-migrations/00002_rename_root.go function init (line 10) | func init() { function Up00002 (line 14) | func Up00002(ctx context.Context, tx *sql.Tx) error { function Down00002 (line 19) | func Down00002(ctx context.Context, tx *sql.Tx) error { FILE: examples/go-migrations/00003_add_user_no_tx.go function init (line 11) | func init() { function Up00003 (line 15) | func Up00003(ctx context.Context, db *sql.DB) error { function getUserID (line 29) | func getUserID(db *sql.DB, username string) (int, error) { function Down00003 (line 38) | func Down00003(ctx context.Context, db *sql.DB) error { FILE: examples/go-migrations/main.go function main (line 20) | func main() { FILE: examples/sql-migrations/00001_create_users_table.sql type users (line 2) | CREATE TABLE users ( FILE: examples/sql-migrations/00003_no_transaction.sql type post (line 3) | CREATE TABLE post ( FILE: fix.go constant seqVersionTemplate (line 10) | seqVersionTemplate = "%05v" function Fix (line 12) | func Fix(dir string) error { FILE: fix_test.go function TestFix (line 12) | func TestFix(t *testing.T) { FILE: globals.go function ResetGlobalMigrations (line 16) | func ResetGlobalMigrations() { function SetGlobalMigrations (line 25) | func SetGlobalMigrations(migrations ...*Migration) error { function checkGoMigration (line 38) | func checkGoMigration(m *Migration) error { function checkGoFunc (line 86) | func checkGoFunc(f *GoFunc) error { FILE: globals_test.go function TestNewGoMigration (line 11) | func TestNewGoMigration(t *testing.T) { function TestTransactionMode (line 53) | func TestTransactionMode(t *testing.T) { function TestLegacyFunctions (line 126) | func TestLegacyFunctions(t *testing.T) { function TestGlobalRegister (line 190) | func TestGlobalRegister(t *testing.T) { function TestCheckMigration (line 214) | func TestCheckMigration(t *testing.T) { FILE: goose.go constant VERSION (line 12) | VERSION = "v3.18.0" function SetVerbose (line 26) | func SetVerbose(v bool) { function SetBaseFS (line 33) | func SetBaseFS(fsys fs.FS) { function Run (line 44) | func Run(command string, db *sql.DB, dir string, args ...string) error { function RunContext (line 50) | func RunContext(ctx context.Context, command string, db *sql.DB, dir str... function RunWithOptions (line 57) | func RunWithOptions(command string, db *sql.DB, dir string, args []strin... function RunWithOptionsContext (line 63) | func RunWithOptionsContext(ctx context.Context, command string, db *sql.... function run (line 67) | func run(ctx context.Context, command string, db *sql.DB, dir string, ar... FILE: goose_cli_test.go constant gooseTestBinaryVersion (line 19) | gooseTestBinaryVersion = "v0.0.0" function TestFullBinary (line 22) | func TestFullBinary(t *testing.T) { function TestLiteBinary (line 30) | func TestLiteBinary(t *testing.T) { type gooseBinary (line 162) | type gooseBinary struct method run (line 166) | func (g gooseBinary) run(params ...string) (string, error) { function buildGooseCLI (line 177) | func buildGooseCLI(t *testing.T, lite bool) gooseBinary { function countSQLFiles (line 202) | func countSQLFiles(t *testing.T, dir string) int { function createEmptyFile (line 209) | func createEmptyFile(t *testing.T, dir, name string) { FILE: goose_embed_test.go function TestEmbeddedMigrations (line 19) | func TestEmbeddedMigrations(t *testing.T) { FILE: helpers.go type camelSnakeStateMachine (line 10) | type camelSnakeStateMachine method next (line 19) | func (s camelSnakeStateMachine) next(r rune) camelSnakeStateMachine { constant idle (line 13) | idle camelSnakeStateMachine = iota constant firstAlphaNum (line 14) | firstAlphaNum constant alphaNum (line 15) | alphaNum constant delimiter (line 16) | delimiter function camelCase (line 43) | func camelCase(str string) string { function snakeCase (line 61) | func snakeCase(str string) string { function isAlphaNum (line 82) | func isAlphaNum(r rune) bool { FILE: helpers_test.go function TestCamelSnake (line 7) | func TestCamelSnake(t *testing.T) { FILE: internal/controller/store.go type StoreController (line 13) | type StoreController struct method TableExists (line 30) | func (c *StoreController) TableExists(ctx context.Context, db database... function NewStoreController (line 26) | func NewStoreController(store database.Store) *StoreController { FILE: internal/dialects/clickhouse.go function NewClickhouse (line 10) | func NewClickhouse() dialect.Querier { type clickhouse (line 14) | type clickhouse struct method CreateTable (line 18) | func (c *clickhouse) CreateTable(tableName string) string { method InsertVersion (line 30) | func (c *clickhouse) InsertVersion(tableName string) string { method DeleteVersion (line 35) | func (c *clickhouse) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 40) | func (c *clickhouse) GetMigrationByVersion(tableName string) string { method ListMigrations (line 45) | func (c *clickhouse) ListMigrations(tableName string) string { method GetLatestVersion (line 50) | func (c *clickhouse) GetLatestVersion(tableName string) string { FILE: internal/dialects/dsql.go function NewAuroraDSQL (line 10) | func NewAuroraDSQL() dialect.QuerierExtender { type dsql (line 14) | type dsql struct method CreateTable (line 18) | func (d *dsql) CreateTable(tableName string) string { method InsertVersion (line 28) | func (d *dsql) InsertVersion(tableName string) string { method DeleteVersion (line 38) | func (d *dsql) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 43) | func (d *dsql) GetMigrationByVersion(tableName string) string { method ListMigrations (line 48) | func (d *dsql) ListMigrations(tableName string) string { method GetLatestVersion (line 53) | func (d *dsql) GetLatestVersion(tableName string) string { method TableExists (line 58) | func (d *dsql) TableExists(tableName string) string { FILE: internal/dialects/mysql.go function NewMysql (line 10) | func NewMysql() dialect.QuerierExtender { type mysql (line 14) | type mysql struct method CreateTable (line 18) | func (m *mysql) CreateTable(tableName string) string { method InsertVersion (line 29) | func (m *mysql) InsertVersion(tableName string) string { method DeleteVersion (line 34) | func (m *mysql) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 39) | func (m *mysql) GetMigrationByVersion(tableName string) string { method ListMigrations (line 44) | func (m *mysql) ListMigrations(tableName string) string { method GetLatestVersion (line 49) | func (m *mysql) GetLatestVersion(tableName string) string { method TableExists (line 54) | func (m *mysql) TableExists(tableName string) string { FILE: internal/dialects/postgres.go function NewPostgres (line 11) | func NewPostgres() dialect.QuerierExtender { type postgres (line 15) | type postgres struct method CreateTable (line 19) | func (p *postgres) CreateTable(tableName string) string { method InsertVersion (line 29) | func (p *postgres) InsertVersion(tableName string) string { method DeleteVersion (line 34) | func (p *postgres) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 39) | func (p *postgres) GetMigrationByVersion(tableName string) string { method ListMigrations (line 44) | func (p *postgres) ListMigrations(tableName string) string { method GetLatestVersion (line 49) | func (p *postgres) GetLatestVersion(tableName string) string { method TableExists (line 54) | func (p *postgres) TableExists(tableName string) string { function parseTableIdentifier (line 64) | func parseTableIdentifier(name string) (schema, table string) { FILE: internal/dialects/redshift.go function NewRedshift (line 10) | func NewRedshift() dialect.Querier { type redshift (line 14) | type redshift struct method CreateTable (line 18) | func (r *redshift) CreateTable(tableName string) string { method InsertVersion (line 29) | func (r *redshift) InsertVersion(tableName string) string { method DeleteVersion (line 34) | func (r *redshift) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 39) | func (r *redshift) GetMigrationByVersion(tableName string) string { method ListMigrations (line 44) | func (r *redshift) ListMigrations(tableName string) string { method GetLatestVersion (line 49) | func (r *redshift) GetLatestVersion(tableName string) string { FILE: internal/dialects/spanner.go function NewSpanner (line 10) | func NewSpanner() dialect.Querier { type spanner (line 14) | type spanner struct method CreateTable (line 18) | func (s *spanner) CreateTable(tableName string) string { method InsertVersion (line 27) | func (s *spanner) InsertVersion(tableName string) string { method DeleteVersion (line 32) | func (s *spanner) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 37) | func (s *spanner) GetMigrationByVersion(tableName string) string { method ListMigrations (line 42) | func (s *spanner) ListMigrations(tableName string) string { method GetLatestVersion (line 47) | func (s *spanner) GetLatestVersion(tableName string) string { FILE: internal/dialects/sqlite3.go function NewSqlite3 (line 10) | func NewSqlite3() dialect.Querier { type sqlite3 (line 14) | type sqlite3 struct method CreateTable (line 18) | func (s *sqlite3) CreateTable(tableName string) string { method InsertVersion (line 28) | func (s *sqlite3) InsertVersion(tableName string) string { method DeleteVersion (line 33) | func (s *sqlite3) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 38) | func (s *sqlite3) GetMigrationByVersion(tableName string) string { method ListMigrations (line 43) | func (s *sqlite3) ListMigrations(tableName string) string { method GetLatestVersion (line 48) | func (s *sqlite3) GetLatestVersion(tableName string) string { FILE: internal/dialects/sqlserver.go function NewSqlserver (line 10) | func NewSqlserver() dialect.Querier { type sqlserver (line 14) | type sqlserver struct method CreateTable (line 18) | func (s *sqlserver) CreateTable(tableName string) string { method InsertVersion (line 28) | func (s *sqlserver) InsertVersion(tableName string) string { method DeleteVersion (line 33) | func (s *sqlserver) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 38) | func (s *sqlserver) GetMigrationByVersion(tableName string) string { method ListMigrations (line 43) | func (s *sqlserver) ListMigrations(tableName string) string { method GetLatestVersion (line 48) | func (s *sqlserver) GetLatestVersion(tableName string) string { FILE: internal/dialects/starrocks.go function NewStarrocks (line 10) | func NewStarrocks() dialect.Querier { type starrocks (line 14) | type starrocks struct method CreateTable (line 18) | func (m *starrocks) CreateTable(tableName string) string { method InsertVersion (line 31) | func (m *starrocks) InsertVersion(tableName string) string { method DeleteVersion (line 36) | func (m *starrocks) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 41) | func (m *starrocks) GetMigrationByVersion(tableName string) string { method ListMigrations (line 46) | func (m *starrocks) ListMigrations(tableName string) string { method GetLatestVersion (line 51) | func (m *starrocks) GetLatestVersion(tableName string) string { FILE: internal/dialects/tidb.go function NewTidb (line 10) | func NewTidb() dialect.Querier { type Tidb (line 14) | type Tidb struct method CreateTable (line 18) | func (t *Tidb) CreateTable(tableName string) string { method InsertVersion (line 29) | func (t *Tidb) InsertVersion(tableName string) string { method DeleteVersion (line 34) | func (t *Tidb) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 39) | func (t *Tidb) GetMigrationByVersion(tableName string) string { method ListMigrations (line 44) | func (t *Tidb) ListMigrations(tableName string) string { method GetLatestVersion (line 49) | func (t *Tidb) GetLatestVersion(tableName string) string { FILE: internal/dialects/turso.go function NewTurso (line 6) | func NewTurso() dialect.Querier { type turso (line 10) | type turso struct FILE: internal/dialects/vertica.go function NewVertica (line 12) | func NewVertica() dialect.Querier { type vertica (line 16) | type vertica struct method CreateTable (line 20) | func (v *vertica) CreateTable(tableName string) string { method InsertVersion (line 31) | func (v *vertica) InsertVersion(tableName string) string { method DeleteVersion (line 36) | func (v *vertica) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 41) | func (v *vertica) GetMigrationByVersion(tableName string) string { method ListMigrations (line 46) | func (v *vertica) ListMigrations(tableName string) string { method GetLatestVersion (line 51) | func (v *vertica) GetLatestVersion(tableName string) string { FILE: internal/dialects/ydb.go function NewYDB (line 10) | func NewYDB() dialect.Querier { type ydb (line 14) | type ydb struct method CreateTable (line 22) | func (c *ydb) CreateTable(tableName string) string { method InsertVersion (line 34) | func (c *ydb) InsertVersion(tableName string) string { method DeleteVersion (line 48) | func (c *ydb) DeleteVersion(tableName string) string { method GetMigrationByVersion (line 54) | func (c *ydb) GetMigrationByVersion(tableName string) string { method ListMigrations (line 60) | func (c *ydb) ListMigrations(tableName string) string { method GetLatestVersion (line 68) | func (c *ydb) GetLatestVersion(tableName string) string { function formatYDBTableName (line 18) | func formatYDBTableName(tableName string) string { FILE: internal/gooseutil/resolve.go function UpVersions (line 19) | func UpVersions( function newMissingError (line 86) | func newMissingError( FILE: internal/gooseutil/resolve_test.go function TestResolveVersions (line 11) | func TestResolveVersions(t *testing.T) { FILE: internal/legacystore/legacystore.go type Store (line 23) | type Store interface function NewStore (line 51) | func NewStore(d database.Dialect) (Store, error) { type GetMigrationResult (line 84) | type GetMigrationResult struct type ListMigrationsResult (line 89) | type ListMigrationsResult struct type store (line 94) | type store struct method CreateVersionTable (line 100) | func (s *store) CreateVersionTable(ctx context.Context, tx *sql.Tx, ta... method InsertVersion (line 106) | func (s *store) InsertVersion(ctx context.Context, tx *sql.Tx, tableNa... method InsertVersionNoTx (line 112) | func (s *store) InsertVersionNoTx(ctx context.Context, db *sql.DB, tab... method DeleteVersion (line 118) | func (s *store) DeleteVersion(ctx context.Context, tx *sql.Tx, tableNa... method DeleteVersionNoTx (line 124) | func (s *store) DeleteVersionNoTx(ctx context.Context, db *sql.DB, tab... method GetMigration (line 130) | func (s *store) GetMigration( method ListMigrations (line 149) | func (s *store) ListMigrations(ctx context.Context, db *sql.DB, tableN... FILE: internal/migrationstats/migration_go.go constant registerGoFuncName (line 14) | registerGoFuncName = "AddMigration" constant registerGoFuncNameNoTx (line 15) | registerGoFuncNameNoTx = "AddMigrationNoTx" constant registerGoFuncNameContext (line 16) | registerGoFuncNameContext = "AddMigrationContext" constant registerGoFuncNameNoTxContext (line 17) | registerGoFuncNameNoTxContext = "AddMigrationNoTxContext" type goMigration (line 20) | type goMigration struct function parseGoFile (line 26) | func parseGoFile(r io.Reader) (*goMigration, error) { function parseInitFunc (line 51) | func parseInitFunc(fd *ast.FuncDecl) (*goMigration, error) { FILE: internal/migrationstats/migration_sql.go type sqlMigration (line 11) | type sqlMigration struct function parseSQLFile (line 16) | func parseSQLFile(r io.Reader, debug bool) (*sqlMigration, error) { FILE: internal/migrationstats/migrationstats.go type FileWalker (line 12) | type FileWalker interface type Stats (line 18) | type Stats struct function GatherStats (line 33) | func GatherStats(fw FileWalker, debug bool) ([]*Stats, error) { function nilAsNumber (line 73) | func nilAsNumber(s string) int { FILE: internal/migrationstats/migrationstats_test.go function TestParsingGoMigrations (line 12) | func TestParsingGoMigrations(t *testing.T) { function TestGoMigrationStats (line 43) | func TestGoMigrationStats(t *testing.T) { function checkGoStats (line 75) | func checkGoStats(t *testing.T, stats *Stats, filename string, version i... function TestParsingGoMigrationsError (line 84) | func TestParsingGoMigrationsError(t *testing.T) { FILE: internal/migrationstats/migrationstats_walker.go function NewFileWalker (line 12) | func NewFileWalker(filenames ...string) FileWalker { type fileWalker (line 18) | type fileWalker struct method Walk (line 24) | func (f *fileWalker) Walk(fn func(filename string, r io.Reader) error)... function walk (line 37) | func walk(filename string, fn func(filename string, r io.Reader) error) ... FILE: internal/sqlparser/parse.go type ParsedSQL (line 11) | type ParsedSQL struct function ParseAllFromFS (line 16) | func ParseAllFromFS(fsys fs.FS, filename string, debug bool) (*ParsedSQL... function parse (line 46) | func parse(fsys fs.FS, filename string, direction Direction, debug bool)... FILE: internal/sqlparser/parse_test.go function TestParseAllFromFS (line 12) | func TestParseAllFromFS(t *testing.T) { function assertParsedSQL (line 69) | func assertParsedSQL(t *testing.T, got *sqlparser.ParsedSQL, useTx bool,... function newFile (line 77) | func newFile(data string) *fstest.MapFile { FILE: internal/sqlparser/parser.go type Direction (line 17) | type Direction method String (line 31) | func (d Direction) String() string { method ToBool (line 35) | func (d Direction) ToBool() bool { constant DirectionUp (line 20) | DirectionUp Direction = "up" constant DirectionDown (line 21) | DirectionDown Direction = "down" function FromBool (line 24) | func FromBool(b bool) Direction { type parserState (line 39) | type parserState constant start (line 42) | start parserState = iota constant gooseUp (line 43) | gooseUp constant gooseStatementBeginUp (line 44) | gooseStatementBeginUp constant gooseStatementEndUp (line 45) | gooseStatementEndUp constant gooseDown (line 46) | gooseDown constant gooseStatementBeginDown (line 47) | gooseStatementBeginDown constant gooseStatementEndDown (line 48) | gooseStatementEndDown type stateMachine (line 51) | type stateMachine struct method get (line 63) | func (s *stateMachine) get() parserState { method set (line 67) | func (s *stateMachine) set(new parserState) { method print (line 77) | func (s *stateMachine) print(msg string, args ...any) { function newStateMachine (line 56) | func newStateMachine(begin parserState, verbose bool) *stateMachine { constant grayColor (line 73) | grayColor = "\033[90m" constant resetColor (line 74) | resetColor = "\033[00m" constant scanBufSize (line 84) | scanBufSize = 4 * 1024 * 1024 function ParseSQLMigration (line 103) | func ParseSQLMigration(r io.Reader, direction Direction, debug bool) (st... type annotation (line 289) | type annotation constant annotationUp (line 292) | annotationUp annotation = "Up" constant annotationDown (line 293) | annotationDown annotation = "Down" constant annotationStatementBegin (line 294) | annotationStatementBegin annotation = "StatementBegin" constant annotationStatementEnd (line 295) | annotationStatementEnd annotation = "StatementEnd" constant annotationNoTransaction (line 296) | annotationNoTransaction annotation = "NO TRANSACTION" constant annotationEnvsubOn (line 297) | annotationEnvsubOn annotation = "ENVSUB ON" constant annotationEnvsubOff (line 298) | annotationEnvsubOff annotation = "ENVSUB OFF" function extractAnnotation (line 319) | func extractAnnotation(line string) (annotation, error) { function missingSemicolonError (line 353) | func missingSemicolonError(state parserState, direction Direction, s str... type envWrapper (line 361) | type envWrapper struct method Get (line 365) | func (e *envWrapper) Get(key string) (string, bool) { function cleanupStatement (line 369) | func cleanupStatement(input string) string { function endsWithSemicolon (line 375) | func endsWithSemicolon(line string) bool { FILE: internal/sqlparser/parser_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function TestSemicolons (line 23) | func TestSemicolons(t *testing.T) { function TestSplitStatements (line 48) | func TestSplitStatements(t *testing.T) { function TestInvalidUp (line 89) | func TestInvalidUp(t *testing.T) { function TestUseTransactions (line 105) | func TestUseTransactions(t *testing.T) { function TestParsingErrors (line 135) | func TestParsingErrors(t *testing.T) { function TestValidUp (line 373) | func TestValidUp(t *testing.T) { function testValid (line 409) | func testValid(t *testing.T, dir string, count int, direction Direction) { function compareStatements (line 421) | func compareStatements(t *testing.T, dir string, statements []string, di... function isCIEnvironment (line 461) | func isCIEnvironment() bool { function TestEnvsub (line 466) | func TestEnvsub(t *testing.T) { function TestEnvsubError (line 493) | func TestEnvsubError(t *testing.T) { function Test_extractAnnotation (line 511) | func Test_extractAnnotation(t *testing.T) { FILE: internal/sqlparser/testdata/envsub/test01/01.up.golden.sql type us_east_post (line 1) | CREATE TABLE us_east_post ( FILE: internal/sqlparser/testdata/envsub/test01/input.sql type GOOSE_ENV_REGION (line 3) | CREATE TABLE ${GOOSE_ENV_REGION}post ( FILE: internal/sqlparser/testdata/envsub/test02/01.up.golden.sql type post (line 1) | CREATE TABLE post ( FILE: internal/sqlparser/testdata/envsub/test02/02.up.golden.sql type post (line 1) | CREATE TABLE post ( FILE: internal/sqlparser/testdata/envsub/test02/input.sql type post (line 4) | CREATE TABLE post ( type post (line 14) | CREATE TABLE post ( FILE: internal/sqlparser/testdata/envsub/test03/01.up.golden.sql type post (line 1) | CREATE TABLE post ( FILE: internal/sqlparser/testdata/envsub/test03/input.sql type post (line 2) | CREATE TABLE post ( FILE: internal/sqlparser/testdata/valid-txn/00001_create_users_table.sql type users (line 2) | CREATE TABLE users ( FILE: internal/sqlparser/testdata/valid-txn/00003_no_transaction.sql type post (line 3) | CREATE TABLE post ( FILE: internal/sqlparser/testdata/valid-up/test01/01.up.golden.sql type emp (line 1) | CREATE TABLE emp ( FILE: internal/sqlparser/testdata/valid-up/test01/02.up.golden.sql function emp_stamp (line 1) | CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$ FILE: internal/sqlparser/testdata/valid-up/test01/input.sql type emp (line 2) | CREATE TABLE emp ( function emp_stamp (line 10) | CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$ FILE: internal/sqlparser/testdata/valid-up/test02/01.up.golden.sql type emp (line 1) | CREATE TABLE emp ( type emp_audit (line 6) | CREATE TABLE emp_audit( function process_emp_audit (line 14) | CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_a... FILE: internal/sqlparser/testdata/valid-up/test02/input.sql type emp (line 3) | CREATE TABLE emp ( type emp_audit (line 8) | CREATE TABLE emp_audit( function process_emp_audit (line 16) | CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_a... FILE: internal/sqlparser/testdata/valid-up/test03/01.up.golden.sql function cs_update_referrer_type_proc (line 1) | CREATE FUNCTION cs_update_referrer_type_proc() RETURNS INTEGER AS ' FILE: internal/sqlparser/testdata/valid-up/test03/input.sql function cs_update_referrer_type_proc (line 3) | CREATE FUNCTION cs_update_referrer_type_proc() RETURNS INTEGER AS ' FILE: internal/sqlparser/testdata/valid-up/test04/01.up.golden.sql type ssh_keys (line 1) | CREATE TABLE ssh_keys ( FILE: internal/sqlparser/testdata/valid-up/test04/input.sql type ssh_keys (line 3) | CREATE TABLE ssh_keys ( FILE: internal/sqlparser/testdata/valid-up/test05/01.up.golden.sql type ssh_keys (line 1) | CREATE TABLE ssh_keys ( FILE: internal/sqlparser/testdata/valid-up/test05/02.up.golden.sql type ssh_keys_backup (line 1) | CREATE TABLE ssh_keys_backup ( FILE: internal/sqlparser/testdata/valid-up/test05/input.sql type ssh_keys (line 3) | CREATE TABLE ssh_keys ( type ssh_keys_backup (line 14) | CREATE TABLE ssh_keys_backup ( FILE: internal/sqlparser/testdata/valid-up/test06/01.up.golden.sql type article (line 1) | CREATE TABLE article ( FILE: internal/sqlparser/testdata/valid-up/test06/04.up.golden.sql function do_something (line 1) | CREATE FUNCTION do_something(sql TEXT) RETURNS INTEGER AS $$ FILE: internal/sqlparser/testdata/valid-up/test06/input.sql type article (line 3) | CREATE TABLE article ( function do_something (line 33) | CREATE FUNCTION do_something(sql TEXT) RETURNS INTEGER AS $$ FILE: internal/sqlparser/testdata/valid-up/test07/01.up.golden.sql type public (line 1) | CREATE INDEX ON public.users (user_id) FILE: internal/sqlparser/testdata/valid-up/test07/input.sql type public (line 4) | CREATE INDEX ON public.users (user_id) FILE: internal/sqlparser/testdata/valid-up/test08/01.up.golden.sql type `table_a` (line 1) | CREATE TABLE `table_a` ( FILE: internal/sqlparser/testdata/valid-up/test08/02.up.golden.sql type `table_b` (line 1) | CREATE TABLE `table_b` ( FILE: internal/sqlparser/testdata/valid-up/test08/03.up.golden.sql type `table_c` (line 1) | CREATE TABLE `table_c` ( FILE: internal/sqlparser/testdata/valid-up/test08/input.sql type `table_a` (line 3) | CREATE TABLE `table_a` ( type `table_b` (line 9) | CREATE TABLE `table_b` ( type `table_c` (line 15) | CREATE TABLE `table_c` ( FILE: internal/sqlparser/testdata/valid-up/test09/01.up.golden.sql type t (line 1) | create table t ( id int ) FILE: internal/sqlparser/testdata/valid-up/test09/input.sql type t (line 3) | create table t ( id int ) FILE: internal/testing/integration/database_test.go function TestPostgres (line 13) | func TestPostgres(t *testing.T) { function TestSpanner (line 24) | func TestSpanner(t *testing.T) { function TestClickhouse (line 35) | func TestClickhouse(t *testing.T) { function TestClickhouseRemote (line 87) | func TestClickhouseRemote(t *testing.T) { function TestMySQL (line 103) | func TestMySQL(t *testing.T) { function TestTurso (line 114) | func TestTurso(t *testing.T) { function TestYDB (line 125) | func TestYDB(t *testing.T) { function TestStarrocks (line 136) | func TestStarrocks(t *testing.T) { FILE: internal/testing/integration/integration.go type collected (line 16) | type collected struct function collectMigrations (line 21) | func collectMigrations(t *testing.T, dir string) []collected { function testDatabase (line 39) | func testDatabase(t *testing.T, dialect database.Dialect, db *sql.DB, mi... FILE: internal/testing/integration/locking/postgres_locking_test.go function TestPostgresSessionLocker (line 24) | func TestPostgresSessionLocker(t *testing.T) { function TestPostgresProviderLocking (line 171) | func TestPostgresProviderLocking(t *testing.T) { function TestPostgresPending (line 411) | func TestPostgresPending(t *testing.T) { function existsPgLock (line 552) | func existsPgLock(ctx context.Context, db *sql.DB, lockID int64) (bool, ... FILE: internal/testing/integration/locking/postgres_table_locking_test.go function TestConcurrentTableLocking (line 19) | func TestConcurrentTableLocking(t *testing.T) { function TestSequentialTableLocking (line 49) | func TestSequentialTableLocking(t *testing.T) { function TestLockerImplementations (line 106) | func TestLockerImplementations(t *testing.T) { function TestPostgresTableLockerIntegration (line 229) | func TestPostgresTableLockerIntegration(t *testing.T) { FILE: internal/testing/integration/testdata/migrations/clickhouse/00001_a.sql type trips (line 2) | CREATE TABLE IF NOT EXISTS trips FILE: internal/testing/integration/testdata/migrations/clickhouse/00002_b.sql type clickstream (line 2) | CREATE TABLE IF NOT EXISTS clickstream ( FILE: internal/testing/integration/testdata/migrations/mysql/00001_table.sql type owners (line 3) | CREATE TABLE owners ( type repos (line 9) | CREATE TABLE IF NOT EXISTS repos ( FILE: internal/testing/integration/testdata/migrations/mysql/00005_no_tx.sql type owners_owner_name_idx (line 4) | CREATE UNIQUE INDEX owners_owner_name_idx ON owners(owner_name) FILE: internal/testing/integration/testdata/migrations/postgres/00001_table.sql type owners (line 5) | CREATE TABLE owners ( type repos (line 11) | CREATE TABLE IF NOT EXISTS repos ( FILE: internal/testing/integration/testdata/migrations/postgres/00005_no_tx.sql type owners (line 4) | CREATE UNIQUE INDEX CONCURRENTLY ON owners(owner_name) FILE: internal/testing/integration/testdata/migrations/postgres/00006_complex.sql function insert_repository (line 3) | CREATE OR REPLACE FUNCTION insert_repository( FILE: internal/testing/integration/testdata/migrations/spanner/00005_no_tx.sql type owners_owner_name_idx (line 5) | CREATE UNIQUE NULL_FILTERED INDEX owners_owner_name_idx ON owners (owner... FILE: internal/testing/integration/testdata/migrations/spanner/00006_view.sql type view_owners (line 5) | CREATE VIEW view_owners FILE: internal/testing/integration/testdata/migrations/starrocks/00002_b.sql type testing (line 3) | CREATE TABLE testing.test_migrations_1 ( type testing (line 14) | CREATE TABLE testing.test_migrations_2 ( FILE: internal/testing/integration/testdata/migrations/turso/00001_table.sql type owners (line 3) | CREATE TABLE owners ( type repos (line 9) | CREATE TABLE IF NOT EXISTS repos ( FILE: internal/testing/integration/testdata/migrations/turso/00005_no_tx.sql type idx_owners_owner_name (line 4) | CREATE UNIQUE INDEX IF NOT EXISTS idx_owners_owner_name ON owners(owner_... FILE: internal/testing/integration/testdata/migrations/ydb/00001_a.sql type owners (line 3) | CREATE TABLE owners ( type repos (line 9) | CREATE TABLE repos ( FILE: internal/testing/integration/testdata/migrations/ydb/00006_f.sql type stargazers (line 3) | CREATE TABLE stargazers ( FILE: internal/testing/integration/testdata/migrations/ydb/00007_g.sql type issues (line 3) | CREATE TABLE issues ( FILE: internal/testing/testdb/clickhouse.go constant CLICKHOUSE_IMAGE (line 18) | CLICKHOUSE_IMAGE = "clickhouse/clickhouse-server" constant CLICKHOUSE_VERSION (line 19) | CLICKHOUSE_VERSION = "24-alpine" constant CLICKHOUSE_DB (line 21) | CLICKHOUSE_DB = "clickdb" constant CLICKHOUSE_USER (line 22) | CLICKHOUSE_USER = "clickuser" constant CLICKHOUSE_PASSWORD (line 23) | CLICKHOUSE_PASSWORD = "password1" constant CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT (line 24) | CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT = "1" function newClickHouse (line 27) | func newClickHouse(opts ...OptionsFunc) (*sql.DB, func(), error) { function clickHouseOpenDB (line 92) | func clickHouseOpenDB(address string, tlsConfig *tls.Config, debug bool)... FILE: internal/testing/testdb/container_healthcheck.go function containerWaitHealthy (line 12) | func containerWaitHealthy(ctx context.Context, pool *dockertest.Pool, id... function containerHealthStatus (line 31) | func containerHealthStatus(ctx context.Context, pool *dockertest.Pool, i... FILE: internal/testing/testdb/mariadb.go constant MARIADB_IMAGE (line 17) | MARIADB_IMAGE = "mariadb" constant MARIADB_VERSION (line 18) | MARIADB_VERSION = "11" constant MARIADB_DB (line 20) | MARIADB_DB = "testdb" constant MARIADB_USER (line 21) | MARIADB_USER = "tester" constant MARIADB_PASSWORD (line 22) | MARIADB_PASSWORD = "password1" function newMariaDB (line 25) | func newMariaDB(opts ...OptionsFunc) (*sql.DB, func(), error) { FILE: internal/testing/testdb/options.go type options (line 3) | type options struct type OptionsFunc (line 8) | type OptionsFunc function WithBindPort (line 10) | func WithBindPort(n int) OptionsFunc { function WithDebug (line 14) | func WithDebug(b bool) OptionsFunc { FILE: internal/testing/testdb/postgres.go constant POSTGRES_IMAGE (line 16) | POSTGRES_IMAGE = "postgres" constant POSTGRES_VERSION (line 17) | POSTGRES_VERSION = "16-alpine" constant POSTGRES_DB (line 19) | POSTGRES_DB = "testdb" constant POSTGRES_USER (line 20) | POSTGRES_USER = "postgres" constant POSTGRES_PASSWORD (line 21) | POSTGRES_PASSWORD = "password1" function newPostgres (line 24) | func newPostgres(opts ...OptionsFunc) (*sql.DB, func(), error) { FILE: internal/testing/testdb/spanner.go constant SPANNER_IMAGE (line 23) | SPANNER_IMAGE = "gcr.io/cloud-spanner-emulator/emulator" constant SPANNER_VERSION (line 24) | SPANNER_VERSION = "latest" constant SPANNER_PROJECT (line 26) | SPANNER_PROJECT = "test-project" constant SPANNER_INSTANCE (line 27) | SPANNER_INSTANCE = "test-instance" constant SPANNER_DATABASE (line 28) | SPANNER_DATABASE = "test-db" function newSpanner (line 31) | func newSpanner(opts ...OptionsFunc) (*sql.DB, func(), error) { function createSpannerResources (line 104) | func createSpannerResources(ctx context.Context) error { FILE: internal/testing/testdb/starrocks.go constant STARROCKS_IMAGE (line 17) | STARROCKS_IMAGE = "starrocks/allin1-ubuntu" constant STARROCKS_VERSION (line 18) | STARROCKS_VERSION = "3.5.11" constant STARROCKS_USER (line 20) | STARROCKS_USER = "root" constant STARROCKS_INIT_DB (line 21) | STARROCKS_INIT_DB = "migrations" function newStarrocks (line 24) | func newStarrocks(opts ...OptionsFunc) (*sql.DB, func(), error) { FILE: internal/testing/testdb/testdb.go function NewClickHouse (line 6) | func NewClickHouse(options ...OptionsFunc) (db *sql.DB, cleanup func(), ... function NewPostgres (line 11) | func NewPostgres(options ...OptionsFunc) (db *sql.DB, cleanup func(), er... function NewSpanner (line 16) | func NewSpanner(options ...OptionsFunc) (db *sql.DB, cleanup func(), err... function NewMariaDB (line 21) | func NewMariaDB(options ...OptionsFunc) (db *sql.DB, cleanup func(), err... function NewYdb (line 26) | func NewYdb(options ...OptionsFunc) (db *sql.DB, cleanup func(), err err... function NewStarrocks (line 31) | func NewStarrocks(options ...OptionsFunc) (db *sql.DB, cleanup func(), e... FILE: internal/testing/testdb/turso.go constant TURSO_IMAGE (line 16) | TURSO_IMAGE = "ghcr.io/tursodatabase/libsql-server" constant TURSO_VERSION (line 17) | TURSO_VERSION = "v0.24.7" constant TURSO_PORT (line 18) | TURSO_PORT = "8080" function NewTurso (line 22) | func NewTurso(options ...OptionsFunc) (db *sql.DB, cleanup func(), err e... function newTurso (line 26) | func newTurso(opts ...OptionsFunc) (*sql.DB, func(), error) { function tursoOpenDB (line 86) | func tursoOpenDB(container *dockertest.Resource) (*sql.DB, error) { FILE: internal/testing/testdb/ydb.go constant YDB_IMAGE (line 21) | YDB_IMAGE = "ghcr.io/ydb-platform/local-ydb" constant YDB_VERSION (line 22) | YDB_VERSION = "24.1" constant YDB_PORT (line 23) | YDB_PORT = "2136" constant YDB_UI_PORT (line 24) | YDB_UI_PORT = "8765" constant YDB_DATABASE (line 25) | YDB_DATABASE = "local" function newYdb (line 28) | func newYdb(opts ...OptionsFunc) (*sql.DB, func(), error) { FILE: lock/internal/store/postgres.go function NewPostgres (line 15) | func NewPostgres(tableName string) (LockStore, error) { type postgresStore (line 26) | type postgresStore struct method TableExists (line 30) | func (s *postgresStore) TableExists( method CreateLockTable (line 53) | func (s *postgresStore) CreateLockTable( method AcquireLock (line 84) | func (s *postgresStore) AcquireLock( method ReleaseLock (line 134) | func (s *postgresStore) ReleaseLock( method UpdateLease (line 175) | func (s *postgresStore) UpdateLease( method CheckLockStatus (line 212) | func (s *postgresStore) CheckLockStatus( method CleanupStaleLocks (line 238) | func (s *postgresStore) CleanupStaleLocks(ctx context.Context, db *sql... function formatDurationAsInterval (line 272) | func formatDurationAsInterval(d time.Duration) string { function parseTableIdentifier (line 276) | func parseTableIdentifier(name string) (schema, table string) { FILE: lock/internal/store/store.go type LockStore (line 10) | type LockStore interface type LockStatus (line 30) | type LockStatus struct type AcquireLockResult (line 38) | type AcquireLockResult struct type ReleaseLockResult (line 44) | type ReleaseLockResult struct type UpdateLeaseResult (line 49) | type UpdateLeaseResult struct FILE: lock/internal/table/config.go type Config (line 9) | type Config struct type ProbeConfig (line 25) | type ProbeConfig struct FILE: lock/internal/table/locker.go type RetryPolicyFunc (line 21) | type RetryPolicyFunc type Locker (line 25) | type Locker struct method Lock (line 81) | func (l *Locker) Lock(ctx context.Context, db *sql.DB) error { method Unlock (line 134) | func (l *Locker) Unlock(ctx context.Context, db *sql.DB) error { method startHeartbeat (line 173) | func (l *Locker) startHeartbeat(parentCtx context.Context, db *sql.DB) { method stopHeartbeat (line 213) | func (l *Locker) stopHeartbeat() { method shouldRetry (line 224) | func (l *Locker) shouldRetry(err error) bool { function New (line 46) | func New(lockStore store.LockStore, cfg Config) *Locker { function randomHex (line 231) | func randomHex(n int) string { FILE: lock/locker.go type SessionLocker (line 20) | type SessionLocker interface type Locker (line 29) | type Locker interface FILE: lock/locktesting/locktesting.go function TestProviderLocking (line 27) | func TestProviderLocking( function TestConcurrentLocking (line 118) | func TestConcurrentLocking( FILE: lock/postgres.go function NewPostgresTableLocker (line 33) | func NewPostgresTableLocker(options ...TableLockerOption) (Locker, error) { function NewPostgresSessionLocker (line 71) | func NewPostgresSessionLocker(opts ...SessionLockerOption) (SessionLocke... type postgresSessionLocker (line 101) | type postgresSessionLocker struct method SessionLock (line 109) | func (l *postgresSessionLocker) SessionLock(ctx context.Context, conn ... method SessionUnlock (line 127) | func (l *postgresSessionLocker) SessionUnlock(ctx context.Context, con... FILE: lock/session_locker_options.go constant DefaultLockID (line 13) | DefaultLockID int64 = 4097083626 type SessionLockerOption (line 17) | type SessionLockerOption interface function WithLockID (line 24) | func WithLockID(lockID int64) SessionLockerOption { function WithLockTimeout (line 38) | func WithLockTimeout(period, failureThreshold uint64) SessionLockerOption { function WithUnlockTimeout (line 61) | func WithUnlockTimeout(period, failureThreshold uint64) SessionLockerOpt... type sessionLockerConfig (line 77) | type sessionLockerConfig struct type probe (line 85) | type probe struct type sessionLockerConfigFunc (line 94) | type sessionLockerConfigFunc method apply (line 96) | func (f sessionLockerConfigFunc) apply(cfg *sessionLockerConfig) error { FILE: lock/table_locker_options.go constant DefaultLockTableName (line 14) | DefaultLockTableName = "goose_lock" type TableLockerOption (line 18) | type TableLockerOption interface function WithTableName (line 23) | func WithTableName(tableName string) TableLockerOption { function WithTableLockID (line 35) | func WithTableLockID(lockID int64) TableLockerOption { function WithTableLeaseDuration (line 47) | func WithTableLeaseDuration(duration time.Duration) TableLockerOption { function WithTableHeartbeatInterval (line 59) | func WithTableHeartbeatInterval(interval time.Duration) TableLockerOption { function WithTableLockTimeout (line 70) | func WithTableLockTimeout(intervalDuration time.Duration, failureThresho... function WithTableUnlockTimeout (line 87) | func WithTableUnlockTimeout(intervalDuration time.Duration, failureThres... function WithTableLogger (line 105) | func WithTableLogger(logger *slog.Logger) TableLockerOption { function WithTableRetryPolicy (line 125) | func WithTableRetryPolicy(retryPolicy func(error) bool) TableLockerOption { type tableLockerConfigFunc (line 132) | type tableLockerConfigFunc method apply (line 134) | func (f tableLockerConfigFunc) apply(cfg *table.Config) error { FILE: lock/table_locker_options_test.go function TestTableLockerOptions (line 10) | func TestTableLockerOptions(t *testing.T) { FILE: log.go type Logger (line 10) | type Logger interface function SetLogger (line 16) | func SetLogger(l Logger) { type stdLogger (line 21) | type stdLogger struct method Fatalf (line 23) | func (*stdLogger) Fatalf(format string, v ...any) { std.Fatalf(format,... method Printf (line 24) | func (*stdLogger) Printf(format string, v ...any) { std.Printf(format,... function NopLogger (line 27) | func NopLogger() Logger { type nopLogger (line 31) | type nopLogger struct method Fatalf (line 35) | func (*nopLogger) Fatalf(format string, v ...any) {} method Printf (line 36) | func (*nopLogger) Printf(format string, v ...any) {} FILE: migrate.go type Migrations (line 30) | type Migrations method Len (line 33) | func (ms Migrations) Len() int { return len(ms) } method Swap (line 34) | func (ms Migrations) Swap(i, j int) { ms[i], ms[j] = ms[j], ms[i] } method Less (line 35) | func (ms Migrations) Less(i, j int) bool { method Current (line 43) | func (ms Migrations) Current(current int64) (*Migration, error) { method Next (line 54) | func (ms Migrations) Next(current int64) (*Migration, error) { method Previous (line 65) | func (ms Migrations) Previous(current int64) (*Migration, error) { method Last (line 76) | func (ms Migrations) Last() (*Migration, error) { method versioned (line 85) | func (ms Migrations) versioned() (Migrations, error) { method timestamped (line 102) | func (ms Migrations) timestamped() (Migrations, error) { method String (line 121) | func (ms Migrations) String() string { function collectMigrationsFS (line 129) | func collectMigrationsFS( function CollectMigrations (line 175) | func CollectMigrations(dirpath string, current, target int64) (Migration... function sortAndConnectMigrations (line 179) | func sortAndConnectMigrations(migrations Migrations) Migrations { function versionFilter (line 196) | func versionFilter(v, current, target int64) bool { function EnsureDBVersion (line 208) | func EnsureDBVersion(db *sql.DB) (int64, error) { function EnsureDBVersionContext (line 215) | func EnsureDBVersionContext(ctx context.Context, db *sql.DB) (int64, err... function createVersionTable (line 255) | func createVersionTable(ctx context.Context, db *sql.DB) error { function GetDBVersion (line 272) | func GetDBVersion(db *sql.DB) (int64, error) { function GetDBVersionContext (line 278) | func GetDBVersionContext(ctx context.Context, db *sql.DB) (int64, error) { function collectGoMigrations (line 299) | func collectGoMigrations( FILE: migrate_test.go function TestMigrationSort (line 13) | func TestMigrationSort(t *testing.T) { function newMigration (line 31) | func newMigration(v int64, src string) *Migration { function validateMigrationSort (line 35) | func validateMigrationSort(t *testing.T, ms Migrations, sorted []int64) { function TestCollectMigrations (line 67) | func TestCollectMigrations(t *testing.T) { function TestVersionFilter (line 225) | func TestVersionFilter(t *testing.T) { function createEmptyFile (line 255) | func createEmptyFile(t *testing.T, dir, name string) { function clearMap (line 263) | func clearMap(m map[int64]*Migration) { FILE: migration.go function NewGoMigration (line 21) | func NewGoMigration(version int64, up, down *GoFunc) *Migration { type Migration (line 85) | type Migration struct method String (line 182) | func (m *Migration) String() string { method Up (line 187) | func (m *Migration) Up(db *sql.DB) error { method UpContext (line 193) | func (m *Migration) UpContext(ctx context.Context, db *sql.DB) error { method Down (line 201) | func (m *Migration) Down(db *sql.DB) error { method DownContext (line 207) | func (m *Migration) DownContext(ctx context.Context, db *sql.DB) error { method run (line 214) | func (m *Migration) run(ctx context.Context, db *sql.DB, direction boo... method ref (line 396) | func (m *Migration) ref() string { type sqlMigration (line 121) | type sqlMigration struct type GoFunc (line 135) | type GoFunc struct type TransactionMode (line 155) | type TransactionMode method String (line 162) | func (m TransactionMode) String() string { constant TransactionEnabled (line 158) | TransactionEnabled TransactionMode = iota + 1 constant TransactionDisabled (line 159) | TransactionDisabled type MigrationRecord (line 176) | type MigrationRecord struct function runGoMigrationNoTx (line 291) | func runGoMigrationNoTx( function runGoMigration (line 311) | func runGoMigration( function insertOrDeleteVersion (line 345) | func insertOrDeleteVersion(ctx context.Context, tx *sql.Tx, version int6... function insertOrDeleteVersionNoTx (line 352) | func insertOrDeleteVersionNoTx(ctx context.Context, db *sql.DB, version ... function NumericComponent (line 363) | func NumericComponent(filename string) (int64, error) { function truncateDuration (line 382) | func truncateDuration(d time.Duration) time.Duration { FILE: migration_sql.go function runSQLMigration (line 18) | func runSQLMigration( constant grayColor (line 93) | grayColor = "\033[90m" constant resetColor (line 94) | resetColor = "\033[00m" function verboseInfo (line 97) | func verboseInfo(s string, args ...any) { function clearStatement (line 112) | func clearStatement(s string) string { FILE: osfs.go type osFS (line 10) | type osFS struct method Open (line 12) | func (osFS) Open(name string) (fs.File, error) { return os.Open(filepa... method ReadDir (line 14) | func (osFS) ReadDir(name string) ([]fs.DirEntry, error) { return os.Re... method Stat (line 16) | func (osFS) Stat(name string) (fs.FileInfo, error) { return os.Stat(fi... method ReadFile (line 18) | func (osFS) ReadFile(name string) ([]byte, error) { return os.ReadFile... method Glob (line 20) | func (osFS) Glob(pattern string) ([]string, error) { return filepath.G... type noopFS (line 22) | type noopFS struct method Open (line 26) | func (f noopFS) Open(name string) (fs.File, error) { FILE: pkg/dockermanage/dockerpostgres/postgres.go constant DefaultImage (line 18) | DefaultImage = "postgres:16-alpine" constant DefaultDatabase (line 21) | DefaultDatabase = "testdb" constant DefaultUser (line 24) | DefaultUser = "postgres" constant DefaultPassword (line 27) | DefaultPassword = "password1" constant defaultContainerPort (line 29) | defaultContainerPort = "5432/tcp" type Option (line 33) | type Option interface type optionFunc (line 37) | type optionFunc method apply (line 39) | func (f optionFunc) apply(cfg *config) error { type config (line 43) | type config struct function defaultConfig (line 52) | func defaultConfig() *config { function WithImage (line 65) | func WithImage(image string) Option { function WithDatabase (line 77) | func WithDatabase(database string) Option { function WithUser (line 89) | func WithUser(user string) Option { function WithPassword (line 101) | func WithPassword(password string) Option { function WithHostPort (line 112) | func WithHostPort(port int) Option { function WithLabel (line 123) | func WithLabel(key, value string) Option { function WithLabels (line 135) | func WithLabels(labels map[string]string) Option { type Instance (line 149) | type Instance struct method DSN (line 157) | func (i *Instance) DSN() string { function Start (line 172) | func Start(ctx context.Context, manager *dockermanage.Manager, options .... function TCPReady (line 222) | func TCPReady(ctx context.Context, c *dockermanage.Container) error { FILE: pkg/dockermanage/dockerpostgres/postgres_test.go function newManager (line 18) | func newManager(t *testing.T) *dockermanage.Manager { function TestStartAndConnect (line 28) | func TestStartAndConnect(t *testing.T) { function TestStartAndStop (line 54) | func TestStartAndStop(t *testing.T) { function TestManagedLabel (line 67) | func TestManagedLabel(t *testing.T) { function TestExecPgDump (line 88) | func TestExecPgDump(t *testing.T) { FILE: pkg/dockermanage/manager.go constant defaultReadinessTimeout (line 24) | defaultReadinessTimeout = 30 * time.Second constant defaultReadinessDelay (line 25) | defaultReadinessDelay = 500 * time.Millisecond type Container (line 29) | type Container struct type ReadinessFunc (line 38) | type ReadinessFunc type Manager (line 41) | type Manager struct method Start (line 68) | func (m *Manager) Start(ctx context.Context, options ...Option) (_ *Co... method Stop (line 179) | func (m *Manager) Stop(ctx context.Context, containerID string) error { method Remove (line 188) | func (m *Manager) Remove(ctx context.Context, containerID string) error { method WaitReady (line 215) | func (m *Manager) WaitReady(ctx context.Context, container *Container,... method ListManaged (line 252) | func (m *Manager) ListManaged(ctx context.Context) ([]string, error) { method StopManaged (line 268) | func (m *Manager) StopManaged(ctx context.Context) error { method RemoveManaged (line 287) | func (m *Manager) RemoveManaged(ctx context.Context) error { method Exec (line 319) | func (m *Manager) Exec(ctx context.Context, containerID string, opts E... method Close (line 366) | func (m *Manager) Close() error { method pullImageIfNotExists (line 405) | func (m *Manager) pullImageIfNotExists(ctx context.Context, imageName ... function NewManager (line 47) | func NewManager(logger *slog.Logger) (*Manager, error) { function newManagerWithClient (line 57) | func newManagerWithClient(dockerClient *client.Client, logger *slog.Logg... function resolveBoundPort (line 157) | func resolveBoundPort(containerJSON container.InspectResponse, container... type WaitOption (line 197) | type WaitOption type waitConfig (line 199) | type waitConfig struct function WithTimeout (line 205) | func WithTimeout(d time.Duration) WaitOption { function WithDelay (line 210) | func WithDelay(d time.Duration) WaitOption { type ExecOptions (line 306) | type ExecOptions struct type ExecResult (line 314) | type ExecResult struct constant streamStdout (line 373) | streamStdout byte = 1 constant streamStderr (line 374) | streamStderr byte = 2 constant streamHeaderSize (line 375) | streamHeaderSize = 8 function demuxDockerStream (line 380) | func demuxDockerStream(r io.Reader, stdout, stderr io.Writer) error { FILE: pkg/dockermanage/options.go constant DefaultHostIP (line 16) | DefaultHostIP = "127.0.0.1" constant ManagedLabelKey (line 20) | ManagedLabelKey = "pressly.goose" type Option (line 24) | type Option interface type optionFunc (line 28) | type optionFunc method apply (line 30) | func (f optionFunc) apply(cfg *config) error { type config (line 34) | type config struct function defaultConfig (line 46) | func defaultConfig() *config { function WithName (line 57) | func WithName(name string) Option { function WithImage (line 69) | func WithImage(image string) Option { function WithContainerPort (line 81) | func WithContainerPort(port string) Option { function WithContainerPortTCP (line 93) | func WithContainerPortTCP(port int) Option { function WithHostIP (line 108) | func WithHostIP(hostIP string) Option { function WithHostPort (line 120) | func WithHostPort(port int) Option { function WithEnv (line 131) | func WithEnv(key, value string) Option { function WithEnvVars (line 146) | func WithEnvVars(envVars []string) Option { function WithAutoRemove (line 154) | func WithAutoRemove(autoRemove bool) Option { function WithPullProgress (line 162) | func WithPullProgress(w io.Writer) Option { function WithLabel (line 170) | func WithLabel(key, value string) Option { function WithLabels (line 182) | func WithLabels(labels map[string]string) Option { FILE: provider.go type Provider (line 25) | type Provider struct method Status (line 161) | func (p *Provider) Status(ctx context.Context) ([]*MigrationStatus, er... method HasPending (line 170) | func (p *Provider) HasPending(ctx context.Context) (bool, error) { method GetVersions (line 178) | func (p *Provider) GetVersions(ctx context.Context) (current, target i... method GetDBVersion (line 185) | func (p *Provider) GetDBVersion(ctx context.Context) (int64, error) { method ListSources (line 195) | func (p *Provider) ListSources() []*Source { method Ping (line 208) | func (p *Provider) Ping(ctx context.Context) error { method Close (line 213) | func (p *Provider) Close() error { method ApplyVersion (line 223) | func (p *Provider) ApplyVersion(ctx context.Context, version int64, di... method Up (line 244) | func (p *Provider) Up(ctx context.Context) ([]*MigrationResult, error) { method UpByOne (line 257) | func (p *Provider) UpByOne(ctx context.Context) (*MigrationResult, err... method UpTo (line 291) | func (p *Provider) UpTo(ctx context.Context, version int64) ([]*Migrat... method Down (line 308) | func (p *Provider) Down(ctx context.Context) (*MigrationResult, error) { method DownTo (line 338) | func (p *Provider) DownTo(ctx context.Context, version int64) ([]*Migr... method up (line 347) | func (p *Provider) up( method down (line 412) | func (p *Provider) down( method apply (line 468) | func (p *Provider) apply( method getVersions (line 518) | func (p *Provider) getVersions(ctx context.Context) (current, target i... method hasPending (line 545) | func (p *Provider) hasPending(ctx context.Context) (_ bool, retErr err... method status (line 609) | func (p *Provider) status(ctx context.Context) (_ []*MigrationStatus, ... method getDBMaxVersion (line 648) | func (p *Provider) getDBMaxVersion(ctx context.Context, conn *sql.Conn... function NewProvider (line 58) | func NewProvider(dialect Dialect, db *sql.DB, fsys fs.FS, opts ...Provid... function newProvider (line 108) | func newProvider( function getVersionsFromMigrations (line 591) | func getVersionsFromMigrations(in []*Migration) []int64 { function getVersionsFromListMigrations (line 600) | func getVersionsFromListMigrations(in []*database.ListMigrationsResult) ... FILE: provider_collect.go type fileSources (line 13) | type fileSources struct function collectFilesystemSources (line 27) | func collectFilesystemSources( function newSQLMigration (line 103) | func newSQLMigration(source Source) *Migration { function merge (line 116) | func merge(sources *fileSources, registered map[int64]*Migration) ([]*Mi... function unregisteredError (line 177) | func unregisteredError(unregistered []string) error { FILE: provider_collect_test.go function TestCollectFileSources (line 11) | func TestCollectFileSources(t *testing.T) { function TestMerge (line 184) | func TestMerge(t *testing.T) { function assertMigration (line 289) | func assertMigration(t *testing.T, got *Migration, want Source) { function newSQLOnlyFS (line 305) | func newSQLOnlyFS() fstest.MapFS { function newSource (line 314) | func newSource(t MigrationType, fullpath string, version int64) Source { FILE: provider_errors.go type PartialError (line 29) | type PartialError struct method Error (line 39) | func (e *PartialError) Error() string { method Unwrap (line 46) | func (e *PartialError) Unwrap() error { FILE: provider_options.go constant DefaultTablename (line 15) | DefaultTablename = "goose_db_version" type ProviderOption (line 19) | type ProviderOption interface function WithStore (line 32) | func WithStore(store database.Store) ProviderOption { function WithTableName (line 52) | func WithTableName(name string) ProviderOption { function WithVerbose (line 63) | func WithVerbose(b bool) ProviderOption { function WithSessionLocker (line 74) | func WithSessionLocker(locker lock.SessionLocker) ProviderOption { function WithLocker (line 98) | func WithLocker(locker lock.Locker) ProviderOption { function WithExcludeNames (line 120) | func WithExcludeNames(excludes []string) ProviderOption { function WithExcludeVersions (line 134) | func WithExcludeVersions(versions []int64) ProviderOption { function WithGoMigrations (line 153) | func WithGoMigrations(migrations ...*Migration) ProviderOption { function WithDisableGlobalRegistry (line 170) | func WithDisableGlobalRegistry(b bool) ProviderOption { function WithAllowOutofOrder (line 184) | func WithAllowOutofOrder(b bool) ProviderOption { function WithDisableVersioning (line 195) | func WithDisableVersioning(b bool) ProviderOption { function WithLogger (line 204) | func WithLogger(l Logger) ProviderOption { function WithSlog (line 225) | func WithSlog(logger *slog.Logger) ProviderOption { function WithIsolateDDL (line 240) | func WithIsolateDDL(b bool) ProviderOption { type config (line 247) | type config struct type configFunc (line 276) | type configFunc method apply (line 278) | func (f configFunc) apply(cfg *config) error { FILE: provider_options_test.go function TestNewProvider (line 15) | func TestNewProvider(t *testing.T) { FILE: provider_run.go method prepareMigration (line 26) | func (p *Provider) prepareMigration(fsys fs.FS, m *Migration, direction ... method logf (line 72) | func (p *Provider) logf(ctx context.Context, legacyMsg string, slogMsg s... method runMigrations (line 96) | func (p *Provider) runMigrations( method runIndividually (line 203) | func (p *Provider) runIndividually( method maybeInsertOrDelete (line 243) | func (p *Provider) maybeInsertOrDelete( function beginTx (line 261) | func beginTx(ctx context.Context, conn *sql.Conn, fn func(tx *sql.Tx) er... method initialize (line 277) | func (p *Provider) initialize(ctx context.Context, useLocker bool) (*sql... method ensureVersionTable (line 338) | func (p *Provider) ensureVersionTable( method tryEnsureVersionTable (line 358) | func (p *Provider) tryEnsureVersionTable(ctx context.Context, conn *sql.... method getMigration (line 416) | func (p *Provider) getMigration(version int64) (*Migration, error) { function useTx (line 427) | func useTx(m *Migration, direction bool) (bool, error) { function isEmpty (line 448) | func isEmpty(m *Migration, direction bool) bool { method runMigration (line 466) | func (p *Provider) runMigration(ctx context.Context, db database.DBTxCon... method runGo (line 478) | func (p *Provider) runGo(ctx context.Context, db database.DBTxConn, m *M... method runSQL (line 510) | func (p *Provider) runSQL(ctx context.Context, db database.DBTxConn, m *... FILE: provider_run_test.go function TestProviderRun (line 22) | func TestProviderRun(t *testing.T) { function TestConcurrentProvider (line 376) | func TestConcurrentProvider(t *testing.T) { function TestNoVersioning (line 471) | func TestNoVersioning(t *testing.T) { function TestAllowMissing (line 552) | func TestAllowMissing(t *testing.T) { function TestSQLiteSharedCache (line 693) | func TestSQLiteSharedCache(t *testing.T) { function TestGoMigrationPanic (line 737) | func TestGoMigrationPanic(t *testing.T) { function TestCustomStoreTableExists (line 764) | func TestCustomStoreTableExists(t *testing.T) { function TestProviderApply (line 779) | func TestProviderApply(t *testing.T) { function TestPending (line 793) | func TestPending(t *testing.T) { type customStoreSQLite3 (line 867) | type customStoreSQLite3 struct method TableExists (line 869) | func (s *customStoreSQLite3) TableExists(ctx context.Context, db datab... function getGooseVersionCount (line 878) | func getGooseVersionCount(db *sql.DB, gooseTable string) (int64, error) { function TestGoOnly (line 888) | func TestGoOnly(t *testing.T) { function newDBFn (line 1010) | func newDBFn(query string) func(context.Context, *sql.DB) error { function newTxFn (line 1017) | func newTxFn(query string) func(context.Context, *sql.Tx) error { function tableExists (line 1024) | func tableExists(t *testing.T, db *sql.DB, table string) bool { constant charset (line 1033) | charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" function randomAlphaNumeric (line 1036) | func randomAlphaNumeric(length int) string { function newProviderWithDB (line 1044) | func newProviderWithDB(t *testing.T, opts ...goose.ProviderOption) (*goo... function newDB (line 1056) | func newDB(t *testing.T) *sql.DB { function getMaxVersionID (line 1064) | func getMaxVersionID(db *sql.DB, gooseTable string) (int64, error) { function getTableNames (line 1074) | func getTableNames(db *sql.DB) ([]string, error) { function assertStatus (line 1094) | func assertStatus( function assertResult (line 1107) | func assertResult( function assertSource (line 1123) | func assertSource(t *testing.T, got *goose.Source, typ goose.MigrationTy... function newSource (line 1130) | func newSource(t goose.MigrationType, fullpath string, version int64) *g... function newMapFile (line 1138) | func newMapFile(data string) *fstest.MapFile { function newFsys (line 1144) | func newFsys() fstest.MapFS { FILE: provider_test.go function TestProvider (line 15) | func TestProvider(t *testing.T) { function TestPartialErrorUnwrap (line 78) | func TestPartialErrorUnwrap(t *testing.T) { FILE: provider_types.go type MigrationType (line 10) | type MigrationType constant TypeGo (line 13) | TypeGo MigrationType = "go" constant TypeSQL (line 14) | TypeSQL MigrationType = "sql" type Source (line 21) | type Source struct type MigrationResult (line 28) | type MigrationResult struct method String (line 50) | func (m *MigrationResult) String() string { type State (line 72) | type State constant StatePending (line 76) | StatePending State = "pending" constant StateApplied (line 79) | StateApplied State = "applied" type MigrationStatus (line 87) | type MigrationStatus struct FILE: redo.go function Redo (line 9) | func Redo(db *sql.DB, dir string, opts ...OptionsFunc) error { function RedoContext (line 15) | func RedoContext(ctx context.Context, db *sql.DB, dir string, opts ...Op... FILE: register.go type GoMigrationContext (line 12) | type GoMigrationContext function AddMigrationContext (line 15) | func AddMigrationContext(up, down GoMigrationContext) { function AddNamedMigrationContext (line 21) | func AddNamedMigrationContext(filename string, up, down GoMigrationConte... type GoMigrationNoTxContext (line 34) | type GoMigrationNoTxContext function AddMigrationNoTxContext (line 37) | func AddMigrationNoTxContext(up, down GoMigrationNoTxContext) { function AddNamedMigrationNoTxContext (line 43) | func AddNamedMigrationNoTxContext(filename string, up, down GoMigrationN... function register (line 54) | func register(filename string, useTx bool, up, down *GoFunc) error { function withContext (line 75) | func withContext[T any](fn func(T) error) func(context.Context, T) error { function withoutContext (line 86) | func withoutContext[T any](fn func(context.Context, T) error) func(T) er... type GoMigration (line 98) | type GoMigration type GoMigrationNoTx (line 103) | type GoMigrationNoTx function AddMigration (line 108) | func AddMigration(up, down GoMigration) { function AddNamedMigration (line 116) | func AddNamedMigration(filename string, up, down GoMigration) { function AddMigrationNoTx (line 123) | func AddMigrationNoTx(up, down GoMigrationNoTx) { function AddNamedMigrationNoTx (line 131) | func AddNamedMigrationNoTx(filename string, up, down GoMigrationNoTx) { FILE: reset.go function Reset (line 11) | func Reset(db *sql.DB, dir string, opts ...OptionsFunc) error { function ResetContext (line 17) | func ResetContext(ctx context.Context, db *sql.DB, dir string, opts ...O... function dbMigrationsStatus (line 48) | func dbMigrationsStatus(ctx context.Context, db *sql.DB) (map[int64]bool... FILE: status.go function Status (line 13) | func Status(db *sql.DB, dir string, opts ...OptionsFunc) error { function StatusContext (line 19) | func StatusContext(ctx context.Context, db *sql.DB, dir string, opts ...... function printMigrationStatus (line 53) | func printMigrationStatus(ctx context.Context, db *sql.DB, version int64... FILE: testdata/migrations/00001_users_table.sql type users (line 2) | CREATE TABLE users ( FILE: testdata/migrations/00002_posts_table.sql type posts (line 3) | CREATE TABLE posts ( FILE: testdata/migrations/00003_comments_table.sql type comments (line 2) | CREATE TABLE comments ( FILE: testdata/migrations/00005_posts_view.sql type posts_view (line 4) | CREATE VIEW posts_view AS FILE: testdata/no-versioning/migrations/00001_a.sql type owners (line 2) | CREATE TABLE owners ( FILE: testdata/testdata.go function MustMigrationsFS (line 12) | func MustMigrationsFS() fs.FS { FILE: tests/gomigrations/error/gomigrations_error_test.go function TestGoMigrationByOne (line 14) | func TestGoMigrationByOne(t *testing.T) { FILE: tests/gomigrations/error/testdata/001_up_no_tx.go function init (line 9) | func init() { function up001 (line 13) | func up001(db *sql.DB) error { FILE: tests/gomigrations/error/testdata/002_ERROR_insert_no_tx.go function init (line 10) | func init() { function up002 (line 14) | func up002(db *sql.DB) error { FILE: tests/gomigrations/error/testdata/003_truncate.go function init (line 9) | func init() { function up003 (line 13) | func up003(tx *sql.Tx) error { FILE: tests/gomigrations/error/testdata/004_ERROR_insert.go function init (line 10) | func init() { function up004 (line 14) | func up004(tx *sql.Tx) error { FILE: tests/gomigrations/register/register_test.go function TestAddFunctions (line 13) | func TestAddFunctions(t *testing.T) { function checkMigration (line 52) | func checkMigration(t *testing.T, got *goose.Migration, want *goose.Migr... function checkFunctions (line 63) | func checkFunctions(t *testing.T, m *goose.Migration) { FILE: tests/gomigrations/register/testdata/001_addmigration.go function init (line 9) | func init() { FILE: tests/gomigrations/register/testdata/002_addmigrationnotx.go function init (line 9) | func init() { FILE: tests/gomigrations/register/testdata/003_addmigrationcontext.go function init (line 10) | func init() { FILE: tests/gomigrations/register/testdata/004_addmigrationnotxcontext.go function init (line 10) | func init() { FILE: tests/gomigrations/success/gomigrations_success_test.go function TestGoMigrationByOne (line 15) | func TestGoMigrationByOne(t *testing.T) { function ListTables (line 87) | func ListTables(db *sql.DB) ([]string, error) { FILE: tests/gomigrations/success/testdata/001_up_down.go function init (line 12) | func init() { function up001 (line 16) | func up001(tx *sql.Tx) error { function down001 (line 20) | func down001(tx *sql.Tx) error { function createTable (line 24) | func createTable(db database.DBTxConn, name string) error { function dropTable (line 29) | func dropTable(db database.DBTxConn, name string) error { FILE: tests/gomigrations/success/testdata/002_up_only.go function init (line 9) | func init() { function up002 (line 13) | func up002(tx *sql.Tx) error { FILE: tests/gomigrations/success/testdata/003_down_only.go function init (line 9) | func init() { function down003 (line 13) | func down003(tx *sql.Tx) error { FILE: tests/gomigrations/success/testdata/004_empty.go function init (line 7) | func init() { FILE: tests/gomigrations/success/testdata/005_up_down_no_tx.go function init (line 9) | func init() { function up005 (line 13) | func up005(db *sql.DB) error { function down005 (line 17) | func down005(db *sql.DB) error { FILE: tests/gomigrations/success/testdata/006_up_only_no_tx.go function init (line 9) | func init() { function up006 (line 13) | func up006(db *sql.DB) error { FILE: tests/gomigrations/success/testdata/007_down_only_no_tx.go function init (line 9) | func init() { function down007 (line 13) | func down007(db *sql.DB) error { FILE: tests/gomigrations/success/testdata/008_empty_no_tx.go function init (line 7) | func init() { FILE: tests/gomigrations/success/testdata/009_up_down_ctx.go function init (line 10) | func init() { function up009 (line 14) | func up009(ctx context.Context, tx *sql.Tx) error { function down009 (line 18) | func down009(ctx context.Context, tx *sql.Tx) error { FILE: tests/gomigrations/success/testdata/010_up_only_ctx.go function init (line 10) | func init() { function up010 (line 14) | func up010(ctx context.Context, tx *sql.Tx) error { FILE: tests/gomigrations/success/testdata/011_down_only_ctx.go function init (line 10) | func init() { function down011 (line 14) | func down011(ctx context.Context, tx *sql.Tx) error { FILE: tests/gomigrations/success/testdata/012_empty_ctx.go function init (line 7) | func init() { FILE: tests/gomigrations/success/testdata/013_up_down_no_tx_ctx.go function init (line 10) | func init() { function up013 (line 14) | func up013(ctx context.Context, db *sql.DB) error { function down013 (line 18) | func down013(ctx context.Context, db *sql.DB) error { FILE: tests/gomigrations/success/testdata/014_up_only_no_tx_ctx.go function init (line 10) | func init() { function up014 (line 14) | func up014(ctx context.Context, db *sql.DB) error { FILE: tests/gomigrations/success/testdata/015_down_only_no_tx_ctx.go function init (line 10) | func init() { function down015 (line 14) | func down015(ctx context.Context, db *sql.DB) error { FILE: tests/gomigrations/success/testdata/016_empty_no_tx_ctx.go function init (line 7) | func init() { FILE: up.go type options (line 11) | type options struct type OptionsFunc (line 17) | type OptionsFunc function WithAllowMissing (line 19) | func WithAllowMissing() OptionsFunc { function WithNoVersioning (line 23) | func WithNoVersioning() OptionsFunc { function WithNoColor (line 27) | func WithNoColor(b bool) OptionsFunc { function withApplyUpByOne (line 31) | func withApplyUpByOne() OptionsFunc { function UpTo (line 36) | func UpTo(db *sql.DB, dir string, version int64, opts ...OptionsFunc) er... function UpToContext (line 41) | func UpToContext(ctx context.Context, db *sql.DB, dir string, version in... function upToNoVersioning (line 144) | func upToNoVersioning(ctx context.Context, db *sql.DB, migrations Migrat... function Up (line 161) | func Up(db *sql.DB, dir string, opts ...OptionsFunc) error { function UpContext (line 167) | func UpContext(ctx context.Context, db *sql.DB, dir string, opts ...Opti... function UpByOne (line 172) | func UpByOne(db *sql.DB, dir string, opts ...OptionsFunc) error { function UpByOneContext (line 178) | func UpByOneContext(ctx context.Context, db *sql.DB, dir string, opts ..... function listAllDBVersions (line 184) | func listAllDBVersions(ctx context.Context, db *sql.DB) (Migrations, err... function findMissingMigrations (line 206) | func findMissingMigrations(knownMigrations, newMigrations Migrations, db... FILE: up_test.go function TestFindMissingMigrations (line 7) | func TestFindMissingMigrations(t *testing.T) { FILE: version.go function Version (line 10) | func Version(db *sql.DB, dir string, opts ...OptionsFunc) error { function VersionContext (line 16) | func VersionContext(ctx context.Context, db *sql.DB, dir string, opts ..... function TableName (line 45) | func TableName() string { function SetTableName (line 50) | func SetTableName(n string) {