SYMBOL INDEX (1094 symbols across 160 files) FILE: cli/main.go function main (line 6) | func main() { FILE: cmd/migrate/main.go function main (line 5) | func main() { FILE: database/cassandra/cassandra.go function init (line 18) | func init() { type Config (line 38) | type Config struct type Cassandra (line 45) | type Cassandra struct method Open (line 84) | func (c *Cassandra) Open(url string) (database.Driver, error) { method Close (line 194) | func (c *Cassandra) Close() error { method Lock (line 199) | func (c *Cassandra) Lock() error { method Unlock (line 206) | func (c *Cassandra) Unlock() error { method Run (line 213) | func (c *Cassandra) Run(migration io.Reader) error { method SetVersion (line 244) | func (c *Cassandra) SetVersion(version int, dirty bool) error { method Version (line 274) | func (c *Cassandra) Version() (version int, dirty bool, err error) { method Drop (line 292) | func (c *Cassandra) Drop() error { method ensureVersionTable (line 310) | func (c *Cassandra) ensureVersionTable() (err error) { function WithInstance (line 53) | func WithInstance(session *gocql.Session, config *Config) (database.Driv... function parseConsistency (line 333) | func parseConsistency(consistencyStr string) (consistency gocql.Consiste... FILE: database/cassandra/cassandra_test.go function isReady (line 36) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 63) | func Test(t *testing.T) { function test (line 77) | func test(t *testing.T) { function testMigrate (line 98) | func testMigrate(t *testing.T) { FILE: database/clickhouse/clickhouse.go type Config (line 29) | type Config struct function init (line 38) | func init() { function WithInstance (line 42) | func WithInstance(conn *sql.DB, config *Config) (database.Driver, error) { type ClickHouse (line 63) | type ClickHouse struct method Open (line 69) | func (ch *ClickHouse) Open(dsn string) (database.Driver, error) { method init (line 113) | func (ch *ClickHouse) init() error { method Run (line 135) | func (ch *ClickHouse) Run(r io.Reader) error { method Version (line 165) | func (ch *ClickHouse) Version() (int, bool, error) { method SetVersion (line 180) | func (ch *ClickHouse) SetVersion(version int, dirty bool) error { method ensureVersionTable (line 205) | func (ch *ClickHouse) ensureVersionTable() (err error) { method Drop (line 256) | func (ch *ClickHouse) Drop() (err error) { method Lock (line 288) | func (ch *ClickHouse) Lock() error { method Unlock (line 295) | func (ch *ClickHouse) Unlock() error { method Close (line 302) | func (ch *ClickHouse) Close() error { return ch.conn.Close() } function quoteIdentifier (line 305) | func quoteIdentifier(name string) string { FILE: database/clickhouse/clickhouse_test.go constant defaultPort (line 20) | defaultPort = 9000 function clickhouseConnectionString (line 33) | func clickhouseConnectionString(host, port, engine string) string { function isReady (line 45) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function TestCases (line 76) | func TestCases(t *testing.T) { function testSimple (line 86) | func testSimple(t *testing.T, engine string) { function testSimpleWithInstanceDefaultConfigValues (line 109) | func testSimpleWithInstanceDefaultConfigValues(t *testing.T) { function testMigrate (line 136) | func testMigrate(t *testing.T, engine string) { function testVersion (line 163) | func testVersion(t *testing.T, engine string) { function testDrop (line 200) | func testDrop(t *testing.T, engine string) { FILE: database/clickhouse/examples/migrations/001_init.up.sql type test_1 (line 1) | CREATE TABLE test_1 ( FILE: database/clickhouse/examples/migrations/002_create_table.up.sql type test_2 (line 1) | CREATE TABLE test_2 ( FILE: database/clickhouse/examples/migrations/003_create_database.up.sql type analytics (line 3) | CREATE TABLE IF NOT EXISTS analytics.driver_ratings( type analytics (line 13) | CREATE TABLE analytics.driver_ratings_queue( type analytics (line 29) | CREATE TABLE IF NOT EXISTS analytics.user_ratings( type analytics (line 39) | CREATE TABLE analytics.user_ratings_queue( type analytics (line 55) | CREATE TABLE IF NOT EXISTS analytics.orders( type analytics (line 66) | CREATE TABLE analytics.orders_queue( FILE: database/cockroachdb/cockroachdb.go function init (line 20) | func init() { type Config (line 35) | type Config struct type CockroachDb (line 42) | type CockroachDb struct method Open (line 98) | func (c *CockroachDb) Open(url string) (database.Driver, error) { method Close (line 143) | func (c *CockroachDb) Close() error { method Lock (line 149) | func (c *CockroachDb) Lock() error { method Unlock (line 186) | func (c *CockroachDb) Unlock() error { method Run (line 213) | func (c *CockroachDb) Run(migration io.Reader) error { method SetVersion (line 228) | func (c *CockroachDb) SetVersion(version int, dirty bool) error { method Version (line 247) | func (c *CockroachDb) Version() (version int, dirty bool, err error) { method Drop (line 270) | func (c *CockroachDb) Drop() (err error) { method ensureVersionTable (line 314) | func (c *CockroachDb) ensureVersionTable() (err error) { method ensureLockTable (line 343) | func (c *CockroachDb) ensureLockTable() error { function WithInstance (line 50) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... FILE: database/cockroachdb/cockroachdb_test.go constant defaultPort (line 26) | defaultPort = 26257 function isReady (line 39) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function createDB (line 61) | func createDB(t *testing.T, c dktest.ContainerInfo) { function Test (line 85) | func Test(t *testing.T) { function TestMigrate (line 104) | func TestMigrate(t *testing.T) { function TestMultiStatement (line 128) | func TestMultiStatement(t *testing.T) { function TestFilterCustomQuery (line 158) | func TestFilterCustomQuery(t *testing.T) { FILE: database/cockroachdb/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/cockroachdb/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX IF NOT EXISTS users_email_index ON users (email) FILE: database/cockroachdb/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/cockroachdb/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/driver.go constant NilVersion (line 20) | NilVersion int = -1 type Driver (line 45) | type Driver interface function Open (line 85) | func Open(url string) (Driver, error) { function Register (line 102) | func Register(name string, driver Driver) { function List (line 115) | func List() []string { FILE: database/driver_test.go function ExampleDriver (line 8) | func ExampleDriver() { type mockDriver (line 17) | type mockDriver struct method Open (line 21) | func (m *mockDriver) Open(url string) (Driver, error) { method Close (line 27) | func (m *mockDriver) Close() error { method Lock (line 31) | func (m *mockDriver) Lock() error { method Unlock (line 35) | func (m *mockDriver) Unlock() error { method Run (line 39) | func (m *mockDriver) Run(migration io.Reader) error { method SetVersion (line 43) | func (m *mockDriver) SetVersion(version int, dirty bool) error { method Version (line 47) | func (m *mockDriver) Version() (version int, dirty bool, err error) { method Drop (line 51) | func (m *mockDriver) Drop() error { function TestRegisterTwice (line 55) | func TestRegisterTwice(t *testing.T) { function TestOpen (line 71) | func TestOpen(t *testing.T) { FILE: database/error.go type Error (line 8) | type Error struct method Error (line 22) | func (e Error) Error() string { FILE: database/firebird/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/firebird/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX users_email_index ON users (email) FILE: database/firebird/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/firebird/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/firebird/firebird.go function init (line 19) | func init() { type Config (line 31) | type Config struct type Firebird (line 36) | type Firebird struct method Open (line 77) | func (f *Firebird) Open(dsn string) (database.Driver, error) { method Close (line 100) | func (f *Firebird) Close() error { method Lock (line 109) | func (f *Firebird) Lock() error { method Unlock (line 116) | func (f *Firebird) Unlock() error { method Run (line 123) | func (f *Firebird) Run(migration io.Reader) error { method SetVersion (line 138) | func (f *Firebird) SetVersion(version int, dirty bool) error { method Version (line 159) | func (f *Firebird) Version() (version int, dirty bool, err error) { method Drop (line 174) | func (f *Firebird) Drop() (err error) { method ensureVersionTable (line 219) | func (f *Firebird) ensureVersionTable() (err error) { function WithInstance (line 46) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function btoi (line 244) | func btoi(v bool) int { function itob (line 252) | func itob(v int) bool { FILE: database/firebird/firebird_test.go constant user (line 25) | user = "test_user" constant password (line 26) | password = "123456" constant dbName (line 27) | dbName = "test.fdb" function fbConnectionString (line 47) | func fbConnectionString(host, port string) string { function isReady (line 52) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 81) | func Test(t *testing.T) { function TestMigrate (line 103) | func TestMigrate(t *testing.T) { function TestErrorParsing (line 129) | func TestErrorParsing(t *testing.T) { function TestFilterCustomQuery (line 163) | func TestFilterCustomQuery(t *testing.T) { function Test_Lock (line 184) | func Test_Lock(t *testing.T) { FILE: database/mongodb/mongodb.go function init (line 22) | func init() { constant DefaultLockingCollection (line 30) | DefaultLockingCollection = "migrate_advisory_lock" constant lockKeyUniqueValue (line 31) | lockKeyUniqueValue = 0 constant DefaultLockTimeout (line 32) | DefaultLockTimeout = 15 constant DefaultLockTimeoutInterval (line 33) | DefaultLockTimeoutInterval = 10 constant DefaultAdvisoryLockingFlag (line 34) | DefaultAdvisoryLockingFlag = true constant LockIndexName (line 35) | LockIndexName = "lock_unique_key" constant contextWaitTimeout (line 36) | contextWaitTimeout = 5 * time.Second type Mongo (line 44) | type Mongo struct method Open (line 116) | func (m *Mongo) Open(dsn string) (database.Driver, error) { method SetVersion (line 218) | func (m *Mongo) SetVersion(version int, dirty bool) error { method Version (line 230) | func (m *Mongo) Version() (version int, dirty bool, err error) { method Run (line 243) | func (m *Mongo) Run(migration io.Reader) error { method executeCommandsWithTransaction (line 265) | func (m *Mongo) executeCommandsWithTransaction(ctx context.Context, cm... method executeCommands (line 286) | func (m *Mongo) executeCommands(ctx context.Context, cmds []bson.D) er... method Close (line 296) | func (m *Mongo) Close() error { method Drop (line 300) | func (m *Mongo) Drop() error { method ensureLockTable (line 304) | func (m *Mongo) ensureLockTable() error { method ensureVersionTable (line 321) | func (m *Mongo) ensureVersionTable() (err error) { method Lock (line 343) | func (m *Mongo) Lock() error { method Unlock (line 381) | func (m *Mongo) Unlock() error { type Locking (line 51) | type Locking struct type Config (line 57) | type Config struct type versionInfo (line 63) | type versionInfo struct type lockObj (line 68) | type lockObj struct type findFilter (line 74) | type findFilter struct function WithInstance (line 78) | func WithInstance(instance *mongo.Client, config *Config) (database.Driv... function parseBoolean (line 187) | func parseBoolean(urlParam string, defaultValue bool) (bool, error) { function parseInt (line 204) | func parseInt(urlParam string, defaultValue int) (int, error) { FILE: database/mongodb/mongodb_test.go function mongoConnectionString (line 42) | func mongoConnectionString(host, port string) string { function isReady (line 48) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 76) | func Test(t *testing.T) { function test (line 92) | func test(t *testing.T) { function testMigrate (line 118) | func testMigrate(t *testing.T) { function testWithAuth (line 144) | func testWithAuth(t *testing.T) { function testLockWorks (line 199) | func testLockWorks(t *testing.T) { function TestTransaction (line 255) | func TestTransaction(t *testing.T) { type isMaster (line 393) | type isMaster struct function waitForReplicaInit (line 397) | func waitForReplicaInit(client *mongo.Client) error { FILE: database/multistmt/parse.go type Handler (line 16) | type Handler function splitWithDelimiter (line 18) | func splitWithDelimiter(delimiter []byte) func(d []byte, atEOF bool) (in... function Parse (line 35) | func Parse(reader io.Reader, delimiter []byte, maxMigrationSize int, h H... FILE: database/multistmt/parse_test.go constant maxMigrationSize (line 12) | maxMigrationSize = 1024 function TestParse (line 14) | func TestParse(t *testing.T) { function TestParseDiscontinue (line 45) | func TestParseDiscontinue(t *testing.T) { FILE: database/mysql/examples/migrations/1_init.up.sql type test (line 1) | CREATE TABLE IF NOT EXISTS test ( FILE: database/mysql/mysql.go function init (line 26) | func init() { type Config (line 40) | type Config struct type Mysql (line 47) | type Mysql struct method Open (line 226) | func (m *Mysql) Open(url string) (database.Driver, error) { method Close (line 272) | func (m *Mysql) Close() error { method Lock (line 285) | func (m *Mysql) Lock() error { method Unlock (line 310) | func (m *Mysql) Unlock() error { method Run (line 335) | func (m *Mysql) Run(migration io.Reader) error { method SetVersion (line 356) | func (m *Mysql) SetVersion(version int, dirty bool) error { method Version (line 390) | func (m *Mysql) Version() (version int, dirty bool, err error) { method Drop (line 410) | func (m *Mysql) Drop() (err error) { method ensureVersionTable (line 465) | func (m *Mysql) ensureVersionTable() (err error) { function WithConnection (line 58) | func WithConnection(ctx context.Context, conn *sql.Conn, config *Config)... function WithInstance (line 99) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function extractCustomQueryParams (line 123) | func extractCustomQueryParams(c *mysql.Config) (map[string]string, error) { function urlToMySQLConfig (line 138) | func urlToMySQLConfig(url string) (*mysql.Config, error) { function readBool (line 498) | func readBool(input string) (value bool, valid bool) { FILE: database/mysql/mysql_test.go constant defaultPort (line 29) | defaultPort = 3306 function isReady (line 54) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 82) | func Test(t *testing.T) { function TestMigrate (line 115) | func TestMigrate(t *testing.T) { function TestMigrateAnsiQuotes (line 153) | func TestMigrateAnsiQuotes(t *testing.T) { function TestLockWorks (line 191) | func TestLockWorks(t *testing.T) { function TestNoLockParamValidation (line 229) | func TestNoLockParamValidation(t *testing.T) { function TestNoLockWorks (line 240) | func TestNoLockWorks(t *testing.T) { function TestExtractCustomQueryParams (line 280) | func TestExtractCustomQueryParams(t *testing.T) { function createTmpCert (line 336) | func createTmpCert(t *testing.T) string { function TestURLToMySQLConfig (line 368) | func TestURLToMySQLConfig(t *testing.T) { FILE: database/neo4j/neo4j.go function init (line 17) | func init() { constant DefaultMigrationsLabel (line 22) | DefaultMigrationsLabel = "SchemaMigration" type Config (line 33) | type Config struct type Neo4j (line 39) | type Neo4j struct method Open (line 64) | func (n *Neo4j) Open(url string) (database.Driver, error) { method Close (line 117) | func (n *Neo4j) Close() error { method Lock (line 122) | func (n *Neo4j) Lock() error { method Unlock (line 130) | func (n *Neo4j) Unlock() error { method Run (line 137) | func (n *Neo4j) Run(migration io.Reader) (err error) { method SetVersion (line 184) | func (n *Neo4j) SetVersion(version int, dirty bool) (err error) { method Version (line 209) | func (n *Neo4j) Version() (version int, dirty bool, err error) { method Drop (line 257) | func (n *Neo4j) Drop() (err error) { method ensureVersionConstraint (line 274) | func (n *Neo4j) ensureVersionConstraint() (err error) { function WithInstance (line 47) | func WithInstance(driver neo4j.Driver, config *Config) (database.Driver,... type MigrationRecord (line 204) | type MigrationRecord struct FILE: database/neo4j/neo4j_test.go function neoConnectionString (line 30) | func neoConnectionString(host, port string) string { function isReady (line 34) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 68) | func Test(t *testing.T) { function TestMigrate (line 89) | func TestMigrate(t *testing.T) { function TestMalformed (line 115) | func TestMalformed(t *testing.T) { FILE: database/parse_test.go constant reservedChars (line 10) | reservedChars = "!#$%&'()*+,/:;=?@[]" constant reservedCharTestNamePrefix (line 11) | reservedCharTestNamePrefix = "reserved char " constant baseUsername (line 13) | baseUsername = "username" constant scheme (line 15) | scheme = "database://" function TestUserUnencodedReservedURLChars (line 19) | func TestUserUnencodedReservedURLChars(t *testing.T) { function TestUserEncodedReservedURLChars (line 102) | func TestUserEncodedReservedURLChars(t *testing.T) { function TestPasswordUnencodedReservedURLChars (line 128) | func TestPasswordUnencodedReservedURLChars(t *testing.T) { function TestPasswordEncodedReservedURLChars (line 215) | func TestPasswordEncodedReservedURLChars(t *testing.T) { FILE: database/pgx/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/pgx/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX CONCURRENTLY users_email_index ON users (email) FILE: database/pgx/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/pgx/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/pgx/pgx.go constant LockStrategyAdvisory (line 28) | LockStrategyAdvisory = "advisory" constant LockStrategyTable (line 29) | LockStrategyTable = "table" function init (line 32) | func init() { type Config (line 54) | type Config struct type Postgres (line 68) | type Postgres struct method Open (line 163) | func (p *Postgres) Open(url string) (database.Driver, error) { method Close (line 240) | func (p *Postgres) Close() error { method Lock (line 249) | func (p *Postgres) Lock() error { method Unlock (line 262) | func (p *Postgres) Unlock() error { method applyAdvisoryLock (line 276) | func (p *Postgres) applyAdvisoryLock() error { method applyTableLock (line 290) | func (p *Postgres) applyTableLock() error { method releaseAdvisoryLock (line 333) | func (p *Postgres) releaseAdvisoryLock() error { method releaseTableLock (line 347) | func (p *Postgres) releaseTableLock() error { method Run (line 361) | func (p *Postgres) Run(migration io.Reader) error { method runStatement (line 381) | func (p *Postgres) runStatement(statement []byte) error { method SetVersion (line 448) | func (p *Postgres) SetVersion(version int, dirty bool) error { method Version (line 482) | func (p *Postgres) Version() (version int, dirty bool, err error) { method Drop (line 502) | func (p *Postgres) Drop() (err error) { method ensureVersionTable (line 552) | func (p *Postgres) ensureVersionTable() (err error) { method ensureLockTable (line 588) | func (p *Postgres) ensureLockTable() error { function WithInstance (line 78) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function computeLineFromPos (line 413) | func computeLineFromPos(s string, pos int) (line uint, col uint, ok bool) { constant newLine (line 427) | newLine = '\n' function runesCount (line 429) | func runesCount(input []rune, target rune) int { function runesLastIndex (line 439) | func runesLastIndex(input []rune, target rune) int { function quoteIdentifier (line 611) | func quoteIdentifier(name string) string { FILE: database/pgx/pgx_test.go constant pgPassword (line 28) | pgPassword = "postgres" function pgConnectionString (line 45) | func pgConnectionString(host, port string, options ...string) string { function isReady (line 50) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function mustRun (line 78) | func mustRun(t *testing.T, d database.Driver, statements []string) { function Test (line 86) | func Test(t *testing.T) { function TestMigrate (line 108) | func TestMigrate(t *testing.T) { function TestMigrateLockTable (line 134) | func TestMigrateLockTable(t *testing.T) { function TestMultipleStatements (line 160) | func TestMultipleStatements(t *testing.T) { function TestMultipleStatementsInMultiStatementMode (line 193) | func TestMultipleStatementsInMultiStatementMode(t *testing.T) { function TestErrorParsing (line 226) | func TestErrorParsing(t *testing.T) { function TestFilterCustomQuery (line 255) | func TestFilterCustomQuery(t *testing.T) { function TestWithSchema (line 276) | func TestWithSchema(t *testing.T) { function TestMigrationTableOption (line 345) | func TestMigrationTableOption(t *testing.T) { function TestFailToCreateTableWithoutPermissions (line 413) | func TestFailToCreateTableWithoutPermissions(t *testing.T) { function TestCheckBeforeCreateTable (line 483) | func TestCheckBeforeCreateTable(t *testing.T) { function TestParallelSchema (line 560) | func TestParallelSchema(t *testing.T) { function TestPostgres_Lock (line 626) | func TestPostgres_Lock(t *testing.T) { function TestWithInstance_Concurrent (line 666) | func TestWithInstance_Concurrent(t *testing.T) { function Test_computeLineFromPos (line 708) | func Test_computeLineFromPos(t *testing.T) { FILE: database/pgx/v5/pgx.go function init (line 26) | func init() { type Config (line 44) | type Config struct type Postgres (line 56) | type Postgres struct method Open (line 139) | func (p *Postgres) Open(url string) (database.Driver, error) { method Close (line 211) | func (p *Postgres) Close() error { method Lock (line 221) | func (p *Postgres) Lock() error { method Unlock (line 237) | func (p *Postgres) Unlock() error { method Run (line 252) | func (p *Postgres) Run(migration io.Reader) error { method runStatement (line 272) | func (p *Postgres) runStatement(statement []byte) error { method SetVersion (line 339) | func (p *Postgres) SetVersion(version int, dirty bool) error { method Version (line 373) | func (p *Postgres) Version() (version int, dirty bool, err error) { method Drop (line 393) | func (p *Postgres) Drop() (err error) { method ensureVersionTable (line 437) | func (p *Postgres) ensureVersionTable() (err error) { function WithInstance (line 66) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function computeLineFromPos (line 304) | func computeLineFromPos(s string, pos int) (line uint, col uint, ok bool) { constant newLine (line 318) | newLine = '\n' function runesCount (line 320) | func runesCount(input []rune, target rune) int { function runesLastIndex (line 330) | func runesLastIndex(input []rune, target rune) int { function quoteIdentifier (line 474) | func quoteIdentifier(name string) string { FILE: database/pgx/v5/pgx_test.go constant pgPassword (line 29) | pgPassword = "postgres" function pgConnectionString (line 46) | func pgConnectionString(host, port string, options ...string) string { function isReady (line 51) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function mustRun (line 79) | func mustRun(t *testing.T, d database.Driver, statements []string) { function Test (line 87) | func Test(t *testing.T) { function TestMigrate (line 109) | func TestMigrate(t *testing.T) { function TestMultipleStatements (line 135) | func TestMultipleStatements(t *testing.T) { function TestMultipleStatementsInMultiStatementMode (line 168) | func TestMultipleStatementsInMultiStatementMode(t *testing.T) { function TestErrorParsing (line 201) | func TestErrorParsing(t *testing.T) { function TestFilterCustomQuery (line 230) | func TestFilterCustomQuery(t *testing.T) { function TestWithSchema (line 251) | func TestWithSchema(t *testing.T) { function TestMigrationTableOption (line 320) | func TestMigrationTableOption(t *testing.T) { function TestFailToCreateTableWithoutPermissions (line 388) | func TestFailToCreateTableWithoutPermissions(t *testing.T) { function TestCheckBeforeCreateTable (line 458) | func TestCheckBeforeCreateTable(t *testing.T) { function TestParallelSchema (line 535) | func TestParallelSchema(t *testing.T) { function TestPostgres_Lock (line 601) | func TestPostgres_Lock(t *testing.T) { function TestWithInstance_Concurrent (line 641) | func TestWithInstance_Concurrent(t *testing.T) { function Test_computeLineFromPos (line 683) | func Test_computeLineFromPos(t *testing.T) { FILE: database/postgres/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/postgres/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX CONCURRENTLY users_email_index ON users (email) FILE: database/postgres/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/postgres/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/postgres/postgres.go function init (line 24) | func init() { type Config (line 44) | type Config struct type Postgres (line 56) | type Postgres struct method Open (line 152) | func (p *Postgres) Open(url string) (database.Driver, error) { method Close (line 219) | func (p *Postgres) Close() error { method Lock (line 233) | func (p *Postgres) Lock() error { method Unlock (line 250) | func (p *Postgres) Unlock() error { method Run (line 265) | func (p *Postgres) Run(migration io.Reader) error { method runStatement (line 285) | func (p *Postgres) runStatement(statement []byte) error { method SetVersion (line 355) | func (p *Postgres) SetVersion(version int, dirty bool) error { method Version (line 389) | func (p *Postgres) Version() (version int, dirty bool, err error) { method Drop (line 409) | func (p *Postgres) Drop() (err error) { method ensureVersionTable (line 453) | func (p *Postgres) ensureVersionTable() (err error) { function WithConnection (line 66) | func WithConnection(ctx context.Context, conn *sql.Conn, config *Config)... function WithInstance (line 132) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function computeLineFromPos (line 320) | func computeLineFromPos(s string, pos int) (line uint, col uint, ok bool) { constant newLine (line 334) | newLine = '\n' function runesCount (line 336) | func runesCount(input []rune, target rune) int { function runesLastIndex (line 346) | func runesLastIndex(input []rune, target rune) int { FILE: database/postgres/postgres_test.go constant pgPassword (line 29) | pgPassword = "postgres" function pgConnectionString (line 46) | func pgConnectionString(host, port string, options ...string) string { function isReady (line 51) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function mustRun (line 79) | func mustRun(t *testing.T, d database.Driver, statements []string) { function Test (line 87) | func Test(t *testing.T) { function test (line 113) | func test(t *testing.T) { function testMigrate (line 135) | func testMigrate(t *testing.T) { function testMultipleStatements (line 161) | func testMultipleStatements(t *testing.T) { function testMultipleStatementsInMultiStatementMode (line 194) | func testMultipleStatementsInMultiStatementMode(t *testing.T) { function testErrorParsing (line 227) | func testErrorParsing(t *testing.T) { function testFilterCustomQuery (line 256) | func testFilterCustomQuery(t *testing.T) { function testWithSchema (line 278) | func testWithSchema(t *testing.T) { function testMigrationTableOption (line 348) | func testMigrationTableOption(t *testing.T) { function testFailToCreateTableWithoutPermissions (line 416) | func testFailToCreateTableWithoutPermissions(t *testing.T) { function testCheckBeforeCreateTable (line 486) | func testCheckBeforeCreateTable(t *testing.T) { function testParallelSchema (line 563) | func testParallelSchema(t *testing.T) { function testPostgresLock (line 631) | func testPostgresLock(t *testing.T) { function testWithInstanceConcurrent (line 671) | func testWithInstanceConcurrent(t *testing.T) { function testWithConnection (line 714) | func testWithConnection(t *testing.T) { function Test_computeLineFromPos (line 751) | func Test_computeLineFromPos(t *testing.T) { FILE: database/ql/examples/migrations/33_create_table.up.sql type pets (line 1) | CREATE TABLE pets ( FILE: database/ql/ql.go function init (line 17) | func init() { type Config (line 29) | type Config struct type Ql (line 34) | type Ql struct method ensureVersionTable (line 67) | func (m *Ql) ensureVersionTable() (err error) { method Open (line 97) | func (m *Ql) Open(url string) (database.Driver, error) { method Close (line 120) | func (m *Ql) Close() error { method Drop (line 123) | func (m *Ql) Drop() (err error) { method Lock (line 163) | func (m *Ql) Lock() error { method Unlock (line 169) | func (m *Ql) Unlock() error { method Run (line 175) | func (m *Ql) Run(migration io.Reader) error { method executeQuery (line 184) | func (m *Ql) executeQuery(query string) error { method SetVersion (line 200) | func (m *Ql) SetVersion(version int, dirty bool) error { method Version (line 232) | func (m *Ql) Version() (version int, dirty bool, err error) { function WithInstance (line 41) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... FILE: database/ql/ql_test.go function Test (line 15) | func Test(t *testing.T) { function TestMigrate (line 37) | func TestMigrate(t *testing.T) { FILE: database/redshift/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/redshift/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX CONCURRENTLY users_email_index ON users (email) FILE: database/redshift/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/redshift/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/redshift/redshift.go function init (line 21) | func init() { type Config (line 33) | type Config struct type Redshift (line 38) | type Redshift struct method Open (line 93) | func (p *Redshift) Open(url string) (database.Driver, error) { method Close (line 118) | func (p *Redshift) Close() error { method Lock (line 128) | func (p *Redshift) Lock() error { method Unlock (line 135) | func (p *Redshift) Unlock() error { method Run (line 142) | func (p *Redshift) Run(migration io.Reader) error { method SetVersion (line 210) | func (p *Redshift) SetVersion(version int, dirty bool) error { method Version (line 244) | func (p *Redshift) Version() (version int, dirty bool, err error) { method Drop (line 264) | func (p *Redshift) Drop() (err error) { method ensureVersionTable (line 308) | func (p *Redshift) ensureVersionTable() (err error) { function WithInstance (line 47) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function computeLineFromPos (line 175) | func computeLineFromPos(s string, pos int) (line uint, col uint, ok bool) { constant newLine (line 189) | newLine = '\n' function runesCount (line 191) | func runesCount(input []rune, target rune) int { function runesLastIndex (line 201) | func runesLastIndex(input []rune, target rune) int { FILE: database/redshift/redshift_test.go constant pgPassword (line 32) | pgPassword = "redshift" function redshiftConnectionString (line 47) | func redshiftConnectionString(host, port string) string { function pgConnectionString (line 51) | func pgConnectionString(host, port string) string { function connectionString (line 55) | func connectionString(schema, host, port string) string { function isReady (line 59) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 87) | func Test(t *testing.T) { function TestMigrate (line 109) | func TestMigrate(t *testing.T) { function TestMultiStatement (line 135) | func TestMultiStatement(t *testing.T) { function TestErrorParsing (line 168) | func TestErrorParsing(t *testing.T) { function TestFilterCustomQuery (line 197) | func TestFilterCustomQuery(t *testing.T) { function TestWithSchema (line 218) | func TestWithSchema(t *testing.T) { function TestWithInstance (line 287) | func TestWithInstance(t *testing.T) { function TestRedshift_Lock (line 291) | func TestRedshift_Lock(t *testing.T) { function Test_computeLineFromPos (line 331) | func Test_computeLineFromPos(t *testing.T) { FILE: database/rqlite/examples/migrations/33_create_table.up.sql type pets (line 1) | CREATE TABLE pets ( FILE: database/rqlite/rqlite.go function init (line 17) | func init() { constant DefaultMigrationsTable (line 23) | DefaultMigrationsTable = "schema_migrations" constant DefaultConnectInsecure (line 26) | DefaultConnectInsecure = false type Config (line 36) | type Config struct type Rqlite (line 43) | type Rqlite struct method ensureVersionTable (line 84) | func (r *Rqlite) ensureVersionTable() (err error) { method Open (line 110) | func (r *Rqlite) Open(url string) (database.Driver, error) { method Close (line 131) | func (r *Rqlite) Close() error { method Lock (line 140) | func (r *Rqlite) Lock() error { method Unlock (line 149) | func (r *Rqlite) Unlock() error { method Run (line 157) | func (r *Rqlite) Run(migration io.Reader) error { method SetVersion (line 174) | func (r *Rqlite) SetVersion(version int, dirty bool) error { method Version (line 214) | func (r *Rqlite) Version() (version int, dirty bool, err error) { method Drop (line 236) | func (r *Rqlite) Drop() error { function WithInstance (line 52) | func WithInstance(instance *gorqlite.Connection, config *Config) (databa... function OpenURL (line 79) | func OpenURL(url string) (database.Driver, error) { function parseUrl (line 277) | func parseUrl(url string) (*nurl.URL, *Config, error) { function parseConfigFromQuery (line 304) | func parseConfigFromQuery(queryVals nurl.Values) (*Config, error) { FILE: database/rqlite/rqlite_test.go function isReady (line 35) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function Test (line 76) | func Test(t *testing.T) { function TestMigrate (line 92) | func TestMigrate(t *testing.T) { function TestBadConnectInsecureParam (line 117) | func TestBadConnectInsecureParam(t *testing.T) { function TestBadProtocol (line 130) | func TestBadProtocol(t *testing.T) { function TestNoConfig (line 143) | func TestNoConfig(t *testing.T) { function TestWithInstanceEmptyConfig (line 159) | func TestWithInstanceEmptyConfig(t *testing.T) { function TestMigrationTable (line 197) | func TestMigrationTable(t *testing.T) { function TestParseUrl (line 255) | func TestParseUrl(t *testing.T) { FILE: database/snowflake/snowflake.go function init (line 19) | func init() { type Config (line 34) | type Config struct type Snowflake (line 39) | type Snowflake struct method Open (line 94) | func (p *Snowflake) Open(url string) (database.Driver, error) { method Close (line 151) | func (p *Snowflake) Close() error { method Lock (line 160) | func (p *Snowflake) Lock() error { method Unlock (line 167) | func (p *Snowflake) Unlock() error { method Run (line 174) | func (p *Snowflake) Run(migration io.Reader) error { method SetVersion (line 242) | func (p *Snowflake) SetVersion(version int, dirty bool) error { method Version (line 278) | func (p *Snowflake) Version() (version int, dirty bool, err error) { method Drop (line 298) | func (p *Snowflake) Drop() (err error) { method ensureVersionTable (line 342) | func (p *Snowflake) ensureVersionTable() (err error) { function WithInstance (line 48) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function computeLineFromPos (line 207) | func computeLineFromPos(s string, pos int) (line uint, col uint, ok bool) { constant newLine (line 221) | newLine = '\n' function runesCount (line 223) | func runesCount(input []rune, target rune) int { function runesLastIndex (line 233) | func runesLastIndex(input []rune, target rune) int { FILE: database/spanner/examples/migrations/1481574547_create_users_table.up.sql type Users (line 1) | CREATE TABLE Users ( FILE: database/spanner/examples/migrations/1496601752_add_index_on_user_emails.up.sql type UsersEmailIndex (line 1) | CREATE UNIQUE INDEX UsersEmailIndex ON Users (Email) FILE: database/spanner/examples/migrations/1496602638_create_books_table.up.sql type Books (line 1) | CREATE TABLE Books ( FILE: database/spanner/examples/migrations/1621360367_create_transactions_table.up.sql type Transactions (line 1) | CREATE TABLE Transactions ( FILE: database/spanner/spanner.go function init (line 26) | func init() { constant DefaultMigrationsTable (line 32) | DefaultMigrationsTable = "SchemaMigrations" type Config (line 45) | type Config struct type Spanner (line 56) | type Spanner struct method Open (line 103) | func (s *Spanner) Open(url string) (database.Driver, error) { method Close (line 141) | func (s *Spanner) Close() error { method Lock (line 148) | func (s *Spanner) Lock() error { method Unlock (line 156) | func (s *Spanner) Unlock() error { method Run (line 164) | func (s *Spanner) Run(migration io.Reader) error { method SetVersion (line 196) | func (s *Spanner) SetVersion(version int, dirty bool) error { method Version (line 217) | func (s *Spanner) Version() (version int, dirty bool, err error) { method Drop (line 251) | func (s *Spanner) Drop() error { method ensureVersionTable (line 294) | func (s *Spanner) ensureVersionTable() (err error) { type DB (line 64) | type DB struct function NewDB (line 69) | func NewDB(admin sdb.DatabaseAdminClient, data spanner.Client) *DB { function WithInstance (line 77) | func WithInstance(instance *DB, config *Config) (database.Driver, error) { function cleanStatements (line 332) | func cleanStatements(migration []byte) ([]string, error) { FILE: database/spanner/spanner_test.go function withSpannerEmulator (line 19) | func withSpannerEmulator(t *testing.T, testFunc func(t *testing.T)) { constant db (line 34) | db = "projects/abc/instances/def/databases/testdb" function Test (line 36) | func Test(t *testing.T) { function TestMigrate (line 48) | func TestMigrate(t *testing.T) { function TestCleanStatements (line 64) | func TestCleanStatements(t *testing.T) { FILE: database/sqlcipher/examples/migrations/33_create_table.up.sql type pets (line 1) | CREATE TABLE pets ( FILE: database/sqlcipher/sqlcipher.go function init (line 18) | func init() { type Config (line 29) | type Config struct type Sqlite (line 35) | type Sqlite struct method ensureVersionTable (line 68) | func (m *Sqlite) ensureVersionTable() (err error) { method Open (line 90) | func (m *Sqlite) Open(url string) (database.Driver, error) { method Close (line 127) | func (m *Sqlite) Close() error { method Drop (line 131) | func (m *Sqlite) Drop() (err error) { method Lock (line 175) | func (m *Sqlite) Lock() error { method Unlock (line 182) | func (m *Sqlite) Unlock() error { method Run (line 189) | func (m *Sqlite) Run(migration io.Reader) error { method executeQuery (line 202) | func (m *Sqlite) executeQuery(query string) error { method executeQueryNoTx (line 219) | func (m *Sqlite) executeQueryNoTx(query string) error { method SetVersion (line 226) | func (m *Sqlite) SetVersion(version int, dirty bool) error { method Version (line 257) | func (m *Sqlite) Version() (version int, dirty bool, err error) { function WithInstance (line 42) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... FILE: database/sqlcipher/sqlcipher_test.go function Test (line 17) | func Test(t *testing.T) { function TestMigrate (line 29) | func TestMigrate(t *testing.T) { function TestMigrationTable (line 56) | func TestMigrationTable(t *testing.T) { function TestNoTxWrap (line 96) | func TestNoTxWrap(t *testing.T) { function TestNoTxWrapInvalidValue (line 110) | func TestNoTxWrapInvalidValue(t *testing.T) { FILE: database/sqlite/examples/migrations/33_create_table.up.sql type pets (line 1) | CREATE TABLE pets ( FILE: database/sqlite/sqlite.go function init (line 18) | func init() { type Config (line 29) | type Config struct type Sqlite (line 35) | type Sqlite struct method ensureVersionTable (line 68) | func (m *Sqlite) ensureVersionTable() (err error) { method Open (line 90) | func (m *Sqlite) Open(url string) (database.Driver, error) { method Close (line 127) | func (m *Sqlite) Close() error { method Drop (line 131) | func (m *Sqlite) Drop() (err error) { method Lock (line 175) | func (m *Sqlite) Lock() error { method Unlock (line 182) | func (m *Sqlite) Unlock() error { method Run (line 189) | func (m *Sqlite) Run(migration io.Reader) error { method executeQuery (line 202) | func (m *Sqlite) executeQuery(query string) error { method executeQueryNoTx (line 219) | func (m *Sqlite) executeQueryNoTx(query string) error { method SetVersion (line 226) | func (m *Sqlite) SetVersion(version int, dirty bool) error { method Version (line 257) | func (m *Sqlite) Version() (version int, dirty bool, err error) { function WithInstance (line 42) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... FILE: database/sqlite/sqlite_test.go function Test (line 17) | func Test(t *testing.T) { function TestMigrate (line 29) | func TestMigrate(t *testing.T) { function TestMigrationTable (line 56) | func TestMigrationTable(t *testing.T) { function TestNoTxWrap (line 96) | func TestNoTxWrap(t *testing.T) { function TestNoTxWrapInvalidValue (line 110) | func TestNoTxWrapInvalidValue(t *testing.T) { function TestMigrateWithDirectoryNameContainsWhitespaces (line 122) | func TestMigrateWithDirectoryNameContainsWhitespaces(t *testing.T) { FILE: database/sqlite3/examples/migrations/33_create_table.up.sql type pets (line 1) | CREATE TABLE pets ( FILE: database/sqlite3/sqlite3.go function init (line 18) | func init() { type Config (line 29) | type Config struct type Sqlite (line 35) | type Sqlite struct method ensureVersionTable (line 68) | func (m *Sqlite) ensureVersionTable() (err error) { method Open (line 90) | func (m *Sqlite) Open(url string) (database.Driver, error) { method Close (line 127) | func (m *Sqlite) Close() error { method Drop (line 131) | func (m *Sqlite) Drop() (err error) { method Lock (line 175) | func (m *Sqlite) Lock() error { method Unlock (line 182) | func (m *Sqlite) Unlock() error { method Run (line 189) | func (m *Sqlite) Run(migration io.Reader) error { method executeQuery (line 202) | func (m *Sqlite) executeQuery(query string) error { method executeQueryNoTx (line 219) | func (m *Sqlite) executeQueryNoTx(query string) error { method SetVersion (line 226) | func (m *Sqlite) SetVersion(version int, dirty bool) error { method Version (line 257) | func (m *Sqlite) Version() (version int, dirty bool, err error) { function WithInstance (line 42) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... FILE: database/sqlite3/sqlite3_test.go function Test (line 17) | func Test(t *testing.T) { function TestMigrate (line 29) | func TestMigrate(t *testing.T) { function TestMigrationTable (line 56) | func TestMigrationTable(t *testing.T) { function TestNoTxWrap (line 96) | func TestNoTxWrap(t *testing.T) { function TestNoTxWrapInvalidValue (line 110) | func TestNoTxWrapInvalidValue(t *testing.T) { function TestMigrateWithDirectoryNameContainsWhitespaces (line 122) | func TestMigrateWithDirectoryNameContainsWhitespaces(t *testing.T) { FILE: database/sqlserver/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/sqlserver/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX users_email_index ON users (email) FILE: database/sqlserver/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/sqlserver/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/sqlserver/sqlserver.go function init (line 20) | func init() { type Config (line 43) | type Config struct type SQLServer (line 50) | type SQLServer struct method Open (line 124) | func (ss *SQLServer) Open(url string) (database.Driver, error) { method Close (line 183) | func (ss *SQLServer) Close() error { method Lock (line 193) | func (ss *SQLServer) Lock() error { method Unlock (line 223) | func (ss *SQLServer) Unlock() error { method Run (line 241) | func (ss *SQLServer) Run(migration io.Reader) error { method SetVersion (line 264) | func (ss *SQLServer) SetVersion(version int, dirty bool) error { method Version (line 304) | func (ss *SQLServer) Version() (version int, dirty bool, err error) { method Drop (line 321) | func (ss *SQLServer) Drop() error { method ensureVersionTable (line 355) | func (ss *SQLServer) ensureVersionTable() (err error) { method getMigrationTable (line 381) | func (ss *SQLServer) getMigrationTable() string { function WithInstance (line 63) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function getMSITokenProvider (line 385) | func getMSITokenProvider(resource string) (func() (string, error), error) { function getAADResourceFromServerUri (line 404) | func getAADResourceFromServerUri(purl *nurl.URL) string { FILE: database/sqlserver/sqlserver_test.go constant defaultPort (line 23) | defaultPort = 1433 constant saPassword (line 24) | saPassword = "Root1234" function msConnectionString (line 40) | func msConnectionString(host, port string) string { function msConnectionStringMsiWithPassword (line 44) | func msConnectionStringMsiWithPassword(host, port string, useMsi bool) s... function msConnectionStringMsi (line 48) | func msConnectionStringMsi(host, port string, useMsi bool) string { function isReady (line 52) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function SkipIfUnsupportedArch (line 80) | func SkipIfUnsupportedArch(t *testing.T, c dktest.ContainerInfo) { function Test (line 86) | func Test(t *testing.T) { function test (line 106) | func test(t *testing.T) { function testMigrate (line 131) | func testMigrate(t *testing.T) { function testMultiStatement (line 160) | func testMultiStatement(t *testing.T) { function testErrorParsing (line 194) | func testErrorParsing(t *testing.T) { function testLockWorks (line 226) | func testLockWorks(t *testing.T) { function testMsiTrue (line 265) | func testMsiTrue(t *testing.T) { function testOpenWithPasswordAndMSI (line 282) | func testOpenWithPasswordAndMSI(t *testing.T) { function testMsiFalse (line 314) | func testMsiFalse(t *testing.T) { FILE: database/stub/stub.go function init (line 11) | func init() { type Stub (line 15) | type Stub struct method Open (line 27) | func (s *Stub) Open(url string) (database.Driver, error) { method Close (line 47) | func (s *Stub) Close() error { method Lock (line 51) | func (s *Stub) Lock() error { method Unlock (line 58) | func (s *Stub) Unlock() error { method Run (line 65) | func (s *Stub) Run(migration io.Reader) error { method SetVersion (line 75) | func (s *Stub) SetVersion(version int, state bool) error { method Version (line 81) | func (s *Stub) Version() (version int, dirty bool, err error) { method Drop (line 87) | func (s *Stub) Drop() error { method EqualSequence (line 94) | func (s *Stub) EqualSequence(seq []string) bool { type Config (line 36) | type Config struct function WithInstance (line 38) | func WithInstance(instance interface{}, config *Config) (database.Driver... constant DROP (line 85) | DROP = "DROP" FILE: database/stub/stub_test.go function Test (line 12) | func Test(t *testing.T) { function TestMigrate (line 21) | func TestMigrate(t *testing.T) { FILE: database/testing/migrate_testing.go function TestMigrate (line 15) | func TestMigrate(t *testing.T, m *migrate.Migrate) { function TestMigrateDrop (line 23) | func TestMigrateDrop(t *testing.T, m *migrate.Migrate) { function TestMigrateUp (line 29) | func TestMigrateUp(t *testing.T, m *migrate.Migrate) { FILE: database/testing/testing.go function Test (line 18) | func Test(t *testing.T, d database.Driver, migration []byte) { function TestNilVersion (line 31) | func TestNilVersion(t *testing.T, d database.Driver) { function TestLockAndUnlock (line 41) | func TestLockAndUnlock(t *testing.T, d database.Driver) { function TestRun (line 102) | func TestRun(t *testing.T, d database.Driver, migration io.Reader) { function TestDrop (line 112) | func TestDrop(t *testing.T, d database.Driver) { function TestSetVersion (line 118) | func TestSetVersion(t *testing.T, d database.Driver) { FILE: database/util.go constant advisoryLockIDSalt (line 10) | advisoryLockIDSalt uint = 1486364155 function GenerateAdvisoryLockId (line 13) | func GenerateAdvisoryLockId(databaseName string, additionalNames ...stri... function CasRestoreOnErr (line 23) | func CasRestoreOnErr(lock *atomic.Bool, o, n bool, casErr error, f func(... FILE: database/util_test.go function TestGenerateAdvisoryLockId (line 9) | func TestGenerateAdvisoryLockId(t *testing.T) { function TestCasRestoreOnErr (line 51) | func TestCasRestoreOnErr(t *testing.T) { FILE: database/yugabytedb/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: database/yugabytedb/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX users_email_index ON users (email) FILE: database/yugabytedb/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: database/yugabytedb/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: database/yugabytedb/yugabytedb.go constant DefaultMaxRetryInterval (line 23) | DefaultMaxRetryInterval = time.Second * 15 constant DefaultMaxRetryElapsedTime (line 24) | DefaultMaxRetryElapsedTime = time.Second * 30 constant DefaultMaxRetries (line 25) | DefaultMaxRetries = 10 constant DefaultMigrationsTable (line 26) | DefaultMigrationsTable = "migrations" constant DefaultLockTable (line 27) | DefaultLockTable = "migrations_locks" function init (line 36) | func init() { type Config (line 43) | type Config struct type YugabyteDB (line 53) | type YugabyteDB struct method Open (line 121) | func (c *YugabyteDB) Open(dbURL string) (database.Driver, error) { method Close (line 187) | func (c *YugabyteDB) Close() error { method Lock (line 193) | func (c *YugabyteDB) Lock() error { method Unlock (line 230) | func (c *YugabyteDB) Unlock() error { method Run (line 257) | func (c *YugabyteDB) Run(migration io.Reader) error { method SetVersion (line 272) | func (c *YugabyteDB) SetVersion(version int, dirty bool) error { method Version (line 291) | func (c *YugabyteDB) Version() (version int, dirty bool, err error) { method Drop (line 314) | func (c *YugabyteDB) Drop() (err error) { method ensureVersionTable (line 355) | func (c *YugabyteDB) ensureVersionTable() (err error) { method ensureLockTable (line 384) | func (c *YugabyteDB) ensureLockTable() error { method doTxWithRetry (line 404) | func (c *YugabyteDB) doTxWithRetry( method newBackoff (line 442) | func (c *YugabyteDB) newBackoff(ctx context.Context) backoff.BackOff { function WithInstance (line 61) | func WithInstance(instance *sql.DB, config *Config) (database.Driver, er... function errIsRetryable (line 462) | func errIsRetryable(err error) bool { FILE: database/yugabytedb/yugabytedb_test.go constant defaultPort (line 25) | defaultPort = 5433 function isReady (line 41) | func isReady(ctx context.Context, c dktest.ContainerInfo) bool { function createDB (line 63) | func createDB(t *testing.T, c dktest.ContainerInfo) { function getConnectionString (line 87) | func getConnectionString(ip, port string, options ...string) string { function Test (line 93) | func Test(t *testing.T) { function test (line 109) | func test(t *testing.T) { function testMigrate (line 128) | func testMigrate(t *testing.T) { function testMultiStatement (line 152) | func testMultiStatement(t *testing.T) { function testFilterCustomQuery (line 182) | func testFilterCustomQuery(t *testing.T) { FILE: dktesting/dktesting.go type ContainerSpec (line 14) | type ContainerSpec struct method Cleanup (line 20) | func (s *ContainerSpec) Cleanup() (retErr error) { function ParallelTest (line 44) | func ParallelTest(t *testing.T, specs []ContainerSpec, FILE: dktesting/example_test.go function ExampleParallelTest (line 16) | func ExampleParallelTest() { FILE: internal/cli/commands.go function nextSeqVersion (line 23) | func nextSeqVersion(matches []string, seqDigits int) (string, error) { function timeVersion (line 59) | func timeVersion(startTime time.Time, format string) (version string, er... function createCmd (line 75) | func createCmd(dir string, startTime time.Time, format string, name stri... function createFile (line 138) | func createFile(filename string) error { function gotoCmd (line 150) | func gotoCmd(m *migrate.Migrate, v uint) error { function upCmd (line 160) | func upCmd(m *migrate.Migrate, limit int) error { function downCmd (line 179) | func downCmd(m *migrate.Migrate, limit int) error { function dropCmd (line 198) | func dropCmd(m *migrate.Migrate) error { function forceCmd (line 205) | func forceCmd(m *migrate.Migrate, v int) error { function versionCmd (line 212) | func versionCmd(m *migrate.Migrate) error { function numDownMigrationsFromArgs (line 227) | func numDownMigrationsFromArgs(applyAll bool, args []string) (int, bool,... FILE: internal/cli/commands_test.go type CreateCmdSuite (line 15) | type CreateCmdSuite struct method mustCreateTempDir (line 23) | func (s *CreateCmdSuite) mustCreateTempDir() string { method mustCreateDir (line 33) | func (s *CreateCmdSuite) mustCreateDir(dir string) { method mustRemoveDir (line 39) | func (s *CreateCmdSuite) mustRemoveDir(dir string) { method mustWriteFile (line 45) | func (s *CreateCmdSuite) mustWriteFile(dir, file, body string) { method mustGetwd (line 51) | func (s *CreateCmdSuite) mustGetwd() string { method mustChdir (line 61) | func (s *CreateCmdSuite) mustChdir(dir string) { method assertEmptyDir (line 67) | func (s *CreateCmdSuite) assertEmptyDir(dir string) bool { method TestNextSeqVersion (line 77) | func (s *CreateCmdSuite) TestNextSeqVersion() { method TestTimeVersion (line 119) | func (s *CreateCmdSuite) TestTimeVersion() { method TestCreateCmd (line 155) | func (s *CreateCmdSuite) TestCreateCmd() { function TestCreateCmdSuite (line 19) | func TestCreateCmdSuite(t *testing.T) { function TestNumDownFromArgs (line 256) | func TestNumDownFromArgs(t *testing.T) { FILE: internal/cli/log.go type Log (line 10) | type Log struct method Printf (line 15) | func (l *Log) Printf(format string, v ...interface{}) { method Println (line 24) | func (l *Log) Println(args ...interface{}) { method Verbose (line 33) | func (l *Log) Verbose() bool { method fatal (line 37) | func (l *Log) fatal(args ...interface{}) { method fatalErr (line 42) | func (l *Log) fatalErr(err error) { FILE: internal/cli/main.go constant defaultTimeFormat (line 19) | defaultTimeFormat = "20060102150405" constant defaultTimezone (line 20) | defaultTimezone = "UTC" constant createUsage (line 21) | createUsage = `create [-ext E] [-dir D] [-seq] [-digits N] [-forma... constant gotoUsage (line 27) | gotoUsage = `goto V Migrate to version V` constant upUsage (line 28) | upUsage = `up [N] Apply all or N up migrations` constant downUsage (line 29) | downUsage = `down [N] [-all] Apply all or N down migrations constant dropUsage (line 31) | dropUsage = `drop [-f] Drop everything inside database constant forceUsage (line 33) | forceUsage = `force V Set version V but don't run migration (ignore... function handleSubCmdHelp (line 36) | func handleSubCmdHelp(help bool, usage string, flagSet *flag.FlagSet) { function newFlagSetWithHelp (line 44) | func newFlagSetWithHelp(name string) (*flag.FlagSet, *bool) { function printUsageAndExit (line 53) | func printUsageAndExit() { function Main (line 62) | func Main(version string) { FILE: internal/url/url.go function SchemeFromURL (line 12) | func SchemeFromURL(url string) (string, error) { FILE: internal/url/url_test.go function TestSchemeFromUrl (line 7) | func TestSchemeFromUrl(t *testing.T) { FILE: log.go type Logger (line 5) | type Logger interface FILE: migrate.go type ErrShortLimit (line 39) | type ErrShortLimit struct method Error (line 44) | func (e ErrShortLimit) Error() string { type ErrDirty (line 48) | type ErrDirty struct method Error (line 52) | func (e ErrDirty) Error() string { type Migrate (line 56) | type Migrate struct method Close (line 193) | func (m *Migrate) Close() (source error, database error) { method Migrate (line 212) | func (m *Migrate) Migrate(version uint) error { method Steps (line 234) | func (m *Migrate) Steps(n int) error { method Up (line 265) | func (m *Migrate) Up() error { method Down (line 287) | func (m *Migrate) Down() error { method Drop (line 307) | func (m *Migrate) Drop() error { method Run (line 321) | func (m *Migrate) Run(migration ...*Migration) error { method Force (line 365) | func (m *Migrate) Force(version int) error { method Version (line 383) | func (m *Migrate) Version() (version uint, dirty bool, err error) { method read (line 400) | func (m *Migrate) read(from int, to int, ret chan<- interface{}) { method readUp (line 532) | func (m *Migrate) readUp(from int, limit int, ret chan<- interface{}) { method readDown (line 632) | func (m *Migrate) readDown(from int, limit int, ret chan<- interface{}) { method runMigrations (line 723) | func (m *Migrate) runMigrations(ret <-chan interface{}) error { method versionExists (line 776) | func (m *Migrate) versionExists(version uint) (result error) { method stop (line 815) | func (m *Migrate) stop() bool { method newMigration (line 832) | func (m *Migrate) newMigration(version uint, targetVersion int) (*Migr... method lock (line 887) | func (m *Migrate) lock() error { method unlock (line 938) | func (m *Migrate) unlock() error { method unlockErr (line 953) | func (m *Migrate) unlockErr(prevErr error) error { method logPrintf (line 961) | func (m *Migrate) logPrintf(format string, v ...interface{}) { method logVerbosePrintf (line 968) | func (m *Migrate) logVerbosePrintf(format string, v ...interface{}) { method logErr (line 975) | func (m *Migrate) logErr(err error) { function New (line 85) | func New(sourceURL, databaseURL string) (*Migrate, error) { function NewWithDatabaseInstance (line 119) | func NewWithDatabaseInstance(sourceURL string, databaseDriverName string... function NewWithSourceInstance (line 145) | func NewWithSourceInstance(sourceName string, sourceInstance source.Driv... function NewWithInstance (line 171) | func NewWithInstance(sourceName string, sourceInstance source.Driver, da... function newCommon (line 183) | func newCommon() *Migrate { FILE: migrate_test.go constant srcDrvNameStub (line 26) | srcDrvNameStub = "stub" constant dbDrvNameStub (line 27) | dbDrvNameStub = "stub" function init (line 30) | func init() { type DummyInstance (line 42) | type DummyInstance struct function TestNew (line 44) | func TestNew(t *testing.T) { function ExampleNew (line 65) | func ExampleNew() { function TestNewWithDatabaseInstance (line 78) | func TestNewWithDatabaseInstance(t *testing.T) { function ExampleNewWithDatabaseInstance (line 105) | func ExampleNewWithDatabaseInstance() { function TestNewWithSourceInstance (line 137) | func TestNewWithSourceInstance(t *testing.T) { function ExampleNewWithSourceInstance (line 164) | func ExampleNewWithSourceInstance() { function TestNewWithInstance (line 187) | func TestNewWithInstance(t *testing.T) { function ExampleNewWithInstance (line 220) | func ExampleNewWithInstance() { function TestClose (line 224) | func TestClose(t *testing.T) { function TestMigrate (line 235) | func TestMigrate(t *testing.T) { function TestMigrateDirty (line 488) | func TestMigrateDirty(t *testing.T) { function TestSteps (line 501) | func TestSteps(t *testing.T) { function TestStepsDirty (line 754) | func TestStepsDirty(t *testing.T) { function TestUpAndDown (line 767) | func TestUpAndDown(t *testing.T) { function TestUpDirty (line 881) | func TestUpDirty(t *testing.T) { function TestDownDirty (line 894) | func TestDownDirty(t *testing.T) { function TestDrop (line 907) | func TestDrop(t *testing.T) { function TestVersion (line 921) | func TestVersion(t *testing.T) { function TestRun (line 948) | func TestRun(t *testing.T) { function TestRunDirty (line 970) | func TestRunDirty(t *testing.T) { function TestForce (line 988) | func TestForce(t *testing.T) { function TestForceDirty (line 1008) | func TestForceDirty(t *testing.T) { function TestRead (line 1020) | func TestRead(t *testing.T) { function TestReadUp (line 1157) | func TestReadUp(t *testing.T) { function TestReadDown (line 1234) | func TestReadDown(t *testing.T) { function TestLock (line 1311) | func TestLock(t *testing.T) { function migrationsFromChannel (line 1322) | func migrationsFromChannel(ret chan interface{}) ([]*Migration, error) { type migrationSequence (line 1336) | type migrationSequence method bodySequence (line 1342) | func (m *migrationSequence) bodySequence() []string { function newMigSeq (line 1338) | func newMigSeq(migr ...*Migration) migrationSequence { function M (line 1364) | func M(version uint, targetVersion ...int) *Migration { function mr (line 1383) | func mr(value string) *Migration { function equalMigSeq (line 1389) | func equalMigSeq(t *testing.T, i int, expected, got migrationSequence) { function equalDbSeq (line 1406) | func equalDbSeq(t *testing.T, i int, expected migrationSequence, got *dS... FILE: migration.go type Migration (line 18) | type Migration struct method String (line 107) | func (m *Migration) String() string { method LogString (line 112) | func (m *Migration) LogString() string { method Buffer (line 122) | func (m *Migration) Buffer() (berr error) { function NewMigration (line 77) | func NewMigration(body io.ReadCloser, identifier string, FILE: migration_test.go function ExampleNewMigration (line 10) | func ExampleNewMigration() { function ExampleNewMigration_nilMigration (line 27) | func ExampleNewMigration_nilMigration() { function ExampleNewMigration_nilVersion (line 41) | func ExampleNewMigration_nilVersion() { FILE: source/aws_s3/s3.go function init (line 18) | func init() { type s3Driver (line 22) | type s3Driver struct method Open (line 33) | func (s *s3Driver) Open(folder string) (source.Driver, error) { method loadMigrations (line 78) | func (s *s3Driver) loadMigrations() error { method Close (line 100) | func (s *s3Driver) Close() error { method First (line 104) | func (s *s3Driver) First() (uint, error) { method Prev (line 112) | func (s *s3Driver) Prev(version uint) (uint, error) { method Next (line 120) | func (s *s3Driver) Next(version uint) (uint, error) { method ReadUp (line 128) | func (s *s3Driver) ReadUp(version uint) (io.ReadCloser, string, error) { method ReadDown (line 135) | func (s *s3Driver) ReadDown(version uint) (io.ReadCloser, string, erro... method open (line 142) | func (s *s3Driver) open(m *source.Migration) (io.ReadCloser, string, e... type Config (line 28) | type Config struct function WithInstance (line 47) | func WithInstance(s3client s3iface.S3API, config *Config) (source.Driver... function parseURI (line 61) | func parseURI(uri string) (*Config, error) { FILE: source/aws_s3/s3_test.go function Test (line 15) | func Test(t *testing.T) { function TestParseURI (line 43) | func TestParseURI(t *testing.T) { type fakeS3 (line 91) | type fakeS3 struct method ListObjects (line 97) | func (s *fakeS3) ListObjects(input *s3.ListObjectsInput) (*s3.ListObje... method GetObject (line 117) | func (s *fakeS3) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOut... FILE: source/bitbucket/bitbucket.go function init (line 16) | func init() { type Bitbucket (line 28) | type Bitbucket struct method Open (line 41) | func (b *Bitbucket) Open(url string) (source.Driver, error) { method readDirectory (line 93) | func (b *Bitbucket) readDirectory() error { method ensureFields (line 123) | func (b *Bitbucket) ensureFields() { method Close (line 129) | func (b *Bitbucket) Close() error { method First (line 133) | func (b *Bitbucket) First() (version uint, er error) { method Prev (line 143) | func (b *Bitbucket) Prev(version uint) (prevVersion uint, err error) { method Next (line 153) | func (b *Bitbucket) Next(version uint) (nextVersion uint, err error) { method ReadUp (line 163) | func (b *Bitbucket) ReadUp(version uint) (r io.ReadCloser, identifier ... method ReadDown (line 185) | func (b *Bitbucket) ReadDown(version uint) (r io.ReadCloser, identifie... type Config (line 34) | type Config struct function WithInstance (line 79) | func WithInstance(client *bitbucket.Client, config *Config) (source.Driv... FILE: source/bitbucket/bitbucket_test.go function init (line 13) | func init() { function Test (line 20) | func Test(t *testing.T) { FILE: source/driver.go type Driver (line 35) | type Driver interface function Open (line 76) | func Open(url string) (Driver, error) { function Register (line 97) | func Register(name string, driver Driver) { function List (line 110) | func List() []string { FILE: source/driver_test.go function ExampleDriver (line 3) | func ExampleDriver() { FILE: source/errors.go type ErrDuplicateMigration (line 7) | type ErrDuplicateMigration struct method Error (line 13) | func (e ErrDuplicateMigration) Error() string { FILE: source/file/file.go function init (line 12) | func init() { type File (line 16) | type File struct method Open (line 22) | func (f *File) Open(url string) (source.Driver, error) { function parseURL (line 37) | func parseURL(url string) (string, error) { FILE: source/file/file_test.go constant scheme (line 14) | scheme = "file://" function Test (line 16) | func Test(t *testing.T) { function TestOpen (line 42) | func TestOpen(t *testing.T) { function TestOpenWithRelativePath (line 59) | func TestOpenWithRelativePath(t *testing.T) { function TestOpenDefaultsToCurrentDirectory (line 106) | func TestOpenDefaultsToCurrentDirectory(t *testing.T) { function TestOpenWithDuplicateVersion (line 123) | func TestOpenWithDuplicateVersion(t *testing.T) { function TestClose (line 136) | func TestClose(t *testing.T) { function mustWriteFile (line 150) | func mustWriteFile(t testing.TB, dir, file string, body string) { function mustCreateBenchmarkDir (line 156) | func mustCreateBenchmarkDir(t *testing.B) (dir string) { function BenchmarkOpen (line 167) | func BenchmarkOpen(b *testing.B) { function BenchmarkNext (line 185) | func BenchmarkNext(b *testing.B) { FILE: source/github/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: source/github/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX CONCURRENTLY users_email_index ON users (email) FILE: source/github/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: source/github/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: source/github/github.go function init (line 19) | func init() { type Github (line 31) | type Github struct method Open (line 45) | func (g *Github) Open(url string) (source.Driver, error) { method readDirectory (line 106) | func (g *Github) readDirectory() error { method ensureFields (line 137) | func (g *Github) ensureFields() { method Close (line 143) | func (g *Github) Close() error { method First (line 147) | func (g *Github) First() (version uint, err error) { method Prev (line 157) | func (g *Github) Prev(version uint) (prevVersion uint, err error) { method Next (line 167) | func (g *Github) Next(version uint) (nextVersion uint, err error) { method ReadUp (line 177) | func (g *Github) ReadUp(version uint) (r io.ReadCloser, identifier str... method ReadDown (line 197) | func (g *Github) ReadDown(version uint) (r io.ReadCloser, identifier s... type Config (line 38) | type Config struct function WithInstance (line 91) | func WithInstance(client *github.Client, config *Config) (source.Driver,... FILE: source/github/github_test.go function init (line 15) | func init() { function Test (line 22) | func Test(t *testing.T) { function TestDefaultClient (line 36) | func TestDefaultClient(t *testing.T) { FILE: source/github_ee/github_ee.go function init (line 17) | func init() { type GithubEE (line 21) | type GithubEE struct method Open (line 25) | func (g *GithubEE) Open(url string) (source.Driver, error) { method createGithubClient (line 75) | func (g *GithubEE) createGithubClient(host, username, password string,... function parseBool (line 90) | func parseBool(val string, fallback bool) bool { FILE: source/github_ee/github_ee_test.go function Test (line 10) | func Test(t *testing.T) { FILE: source/gitlab/examples/migrations/1085649617_create_users_table.up.sql type users (line 1) | CREATE TABLE users ( FILE: source/gitlab/examples/migrations/1285849751_add_index_on_user_emails.up.sql type users_email_index (line 1) | CREATE UNIQUE INDEX CONCURRENTLY users_email_index ON users (email) FILE: source/gitlab/examples/migrations/1385949617_create_books_table.up.sql type books (line 1) | CREATE TABLE books ( FILE: source/gitlab/examples/migrations/1485949617_create_movies_table.up.sql type movies (line 1) | CREATE TABLE movies ( FILE: source/gitlab/gitlab.go function init (line 17) | func init() { constant DefaultMaxItemsPerPage (line 21) | DefaultMaxItemsPerPage = 100 type Gitlab (line 31) | type Gitlab struct method Open (line 45) | func (g *Gitlab) Open(url string) (source.Driver, error) { method readDirectory (line 117) | func (g *Gitlab) readDirectory() error { method nodeToMigration (line 150) | func (g *Gitlab) nodeToMigration(node *gitlab.TreeNode) (*source.Migra... method Close (line 167) | func (g *Gitlab) Close() error { method First (line 171) | func (g *Gitlab) First() (version uint, er error) { method Prev (line 179) | func (g *Gitlab) Prev(version uint) (prevVersion uint, err error) { method Next (line 187) | func (g *Gitlab) Next(version uint) (nextVersion uint, err error) { method ReadUp (line 195) | func (g *Gitlab) ReadUp(version uint) (r io.ReadCloser, identifier str... method ReadDown (line 217) | func (g *Gitlab) ReadDown(version uint) (r io.ReadCloser, identifier s... type Config (line 42) | type Config struct function WithInstance (line 106) | func WithInstance(client *gitlab.Client, config *Config) (source.Driver,... FILE: source/gitlab/gitlab_test.go function init (line 13) | func init() { function Test (line 20) | func Test(t *testing.T) { FILE: source/go_bindata/examples/migrations/bindata.go function bindataRead (line 22) | func bindataRead(data []byte, name string) ([]byte, error) { type asset (line 42) | type asset struct type bindataFileInfo (line 47) | type bindataFileInfo struct method Name (line 54) | func (fi bindataFileInfo) Name() string { method Size (line 57) | func (fi bindataFileInfo) Size() int64 { method Mode (line 60) | func (fi bindataFileInfo) Mode() os.FileMode { method ModTime (line 63) | func (fi bindataFileInfo) ModTime() time.Time { method IsDir (line 66) | func (fi bindataFileInfo) IsDir() bool { method Sys (line 69) | func (fi bindataFileInfo) Sys() interface{} { function _1085649617_create_users_tableDownSqlBytes (line 75) | func _1085649617_create_users_tableDownSqlBytes() ([]byte, error) { function _1085649617_create_users_tableDownSql (line 82) | func _1085649617_create_users_tableDownSql() (*asset, error) { function _1085649617_create_users_tableUpSqlBytes (line 95) | func _1085649617_create_users_tableUpSqlBytes() ([]byte, error) { function _1085649617_create_users_tableUpSql (line 102) | func _1085649617_create_users_tableUpSql() (*asset, error) { function _1185749658_add_city_to_usersDownSqlBytes (line 115) | func _1185749658_add_city_to_usersDownSqlBytes() ([]byte, error) { function _1185749658_add_city_to_usersDownSql (line 122) | func _1185749658_add_city_to_usersDownSql() (*asset, error) { function _1185749658_add_city_to_usersUpSqlBytes (line 135) | func _1185749658_add_city_to_usersUpSqlBytes() ([]byte, error) { function _1185749658_add_city_to_usersUpSql (line 142) | func _1185749658_add_city_to_usersUpSql() (*asset, error) { function Asset (line 156) | func Asset(name string) ([]byte, error) { function MustAsset (line 170) | func MustAsset(name string) []byte { function AssetInfo (line 182) | func AssetInfo(name string) (os.FileInfo, error) { function AssetNames (line 195) | func AssetNames() []string { function AssetDir (line 226) | func AssetDir(name string) ([]string, error) { type bintree (line 248) | type bintree struct function RestoreAsset (line 261) | func RestoreAsset(dir, name string) error { function RestoreAssets (line 286) | func RestoreAssets(dir, name string) error { function _filePath (line 302) | func _filePath(dir, name string) string { FILE: source/go_bindata/go-bindata.go type AssetFunc (line 12) | type AssetFunc function Resource (line 14) | func Resource(names []string, afn AssetFunc) *AssetSource { type AssetSource (line 21) | type AssetSource struct function init (line 26) | func init() { type Bindata (line 30) | type Bindata struct method Open (line 36) | func (b *Bindata) Open(url string) (source.Driver, error) { method Close (line 70) | func (b *Bindata) Close() error { method First (line 74) | func (b *Bindata) First() (version uint, err error) { method Prev (line 82) | func (b *Bindata) Prev(version uint) (prevVersion uint, err error) { method Next (line 90) | func (b *Bindata) Next(version uint) (nextVersion uint, err error) { method ReadUp (line 98) | func (b *Bindata) ReadUp(version uint) (r io.ReadCloser, identifier st... method ReadDown (line 109) | func (b *Bindata) ReadDown(version uint) (r io.ReadCloser, identifier ... function WithInstance (line 44) | func WithInstance(instance interface{}) (source.Driver, error) { FILE: source/go_bindata/go-bindata_test.go function Test (line 10) | func Test(t *testing.T) { function TestWithInstance (line 24) | func TestWithInstance(t *testing.T) { function TestOpen (line 37) | func TestOpen(t *testing.T) { FILE: source/go_bindata/testdata/bindata.go function bindataRead (line 26) | func bindataRead(data []byte, name string) ([]byte, error) { type asset (line 46) | type asset struct type bindataFileInfo (line 51) | type bindataFileInfo struct method Name (line 58) | func (fi bindataFileInfo) Name() string { method Size (line 61) | func (fi bindataFileInfo) Size() int64 { method Mode (line 64) | func (fi bindataFileInfo) Mode() os.FileMode { method ModTime (line 67) | func (fi bindataFileInfo) ModTime() time.Time { method IsDir (line 70) | func (fi bindataFileInfo) IsDir() bool { method Sys (line 73) | func (fi bindataFileInfo) Sys() interface{} { function _1_testDownSqlBytes (line 79) | func _1_testDownSqlBytes() ([]byte, error) { function _1_testDownSql (line 86) | func _1_testDownSql() (*asset, error) { function _1_testUpSqlBytes (line 99) | func _1_testUpSqlBytes() ([]byte, error) { function _1_testUpSql (line 106) | func _1_testUpSql() (*asset, error) { function _3_testUpSqlBytes (line 119) | func _3_testUpSqlBytes() ([]byte, error) { function _3_testUpSql (line 126) | func _3_testUpSql() (*asset, error) { function _4_testDownSqlBytes (line 139) | func _4_testDownSqlBytes() ([]byte, error) { function _4_testDownSql (line 146) | func _4_testDownSql() (*asset, error) { function _4_testUpSqlBytes (line 159) | func _4_testUpSqlBytes() ([]byte, error) { function _4_testUpSql (line 166) | func _4_testUpSql() (*asset, error) { function _5_testDownSqlBytes (line 179) | func _5_testDownSqlBytes() ([]byte, error) { function _5_testDownSql (line 186) | func _5_testDownSql() (*asset, error) { function _7_testDownSqlBytes (line 199) | func _7_testDownSqlBytes() ([]byte, error) { function _7_testDownSql (line 206) | func _7_testDownSql() (*asset, error) { function _7_testUpSqlBytes (line 219) | func _7_testUpSqlBytes() ([]byte, error) { function _7_testUpSql (line 226) | func _7_testUpSql() (*asset, error) { function Asset (line 240) | func Asset(name string) ([]byte, error) { function MustAsset (line 254) | func MustAsset(name string) []byte { function AssetInfo (line 266) | func AssetInfo(name string) (os.FileInfo, error) { function AssetNames (line 279) | func AssetNames() []string { function AssetDir (line 312) | func AssetDir(name string) ([]string, error) { type bintree (line 334) | type bintree struct function RestoreAsset (line 351) | func RestoreAsset(dir, name string) error { function RestoreAssets (line 376) | func RestoreAssets(dir, name string) error { function _filePath (line 392) | func _filePath(dir, name string) string { FILE: source/godoc_vfs/vfs.go function init (line 17) | func init() { type VFS (line 23) | type VFS struct method Open (line 33) | func (b *VFS) Open(url string) (source.Driver, error) { function WithInstance (line 41) | func WithInstance(fs vfs.FileSystem, searchPath string) (source.Driver, ... FILE: source/godoc_vfs/vfs_example_test.go function Example_mapfs (line 9) | func Example_mapfs() { FILE: source/godoc_vfs/vfs_test.go function TestVFS (line 11) | func TestVFS(t *testing.T) { function TestOpen (line 30) | func TestOpen(t *testing.T) { FILE: source/google_cloud_storage/storage.go function init (line 17) | func init() { type gcs (line 21) | type gcs struct method Open (line 27) | func (g *gcs) Open(folder string) (source.Driver, error) { method loadMigrations (line 48) | func (g *gcs) loadMigrations() error { method Close (line 70) | func (g *gcs) Close() error { method First (line 74) | func (g *gcs) First() (uint, error) { method Prev (line 82) | func (g *gcs) Prev(version uint) (uint, error) { method Next (line 90) | func (g *gcs) Next(version uint) (uint, error) { method ReadUp (line 98) | func (g *gcs) ReadUp(version uint) (io.ReadCloser, string, error) { method ReadDown (line 105) | func (g *gcs) ReadDown(version uint) (io.ReadCloser, string, error) { method open (line 112) | func (g *gcs) open(m *source.Migration) (io.ReadCloser, string, error) { FILE: source/google_cloud_storage/storage_test.go function Test (line 11) | func Test(t *testing.T) { FILE: source/httpfs/driver.go type driver (line 13) | type driver struct method Open (line 29) | func (d *driver) Open(url string) (source.Driver, error) { function New (line 19) | func New(fs http.FileSystem, path string) (source.Driver, error) { FILE: source/httpfs/driver_test.go function TestNewOK (line 11) | func TestNewOK(t *testing.T) { function TestNewErrors (line 19) | func TestNewErrors(t *testing.T) { function TestOpen (line 29) | func TestOpen(t *testing.T) { FILE: source/httpfs/partial_driver.go type PartialDriver (line 20) | type PartialDriver struct method Init (line 28) | func (p *PartialDriver) Init(fs http.FileSystem, path string) error { method Close (line 69) | func (p *PartialDriver) Close() error { method First (line 74) | func (p *PartialDriver) First() (version uint, err error) { method Prev (line 86) | func (p *PartialDriver) Prev(version uint) (prevVersion uint, err erro... method Next (line 98) | func (p *PartialDriver) Next(version uint) (nextVersion uint, err erro... method ReadUp (line 110) | func (p *PartialDriver) ReadUp(version uint) (r io.ReadCloser, identif... method ReadDown (line 126) | func (p *PartialDriver) ReadDown(version uint) (r io.ReadCloser, ident... method open (line 141) | func (p *PartialDriver) open(path string) (http.File, error) { FILE: source/httpfs/partial_driver_test.go type driver (line 14) | type driver struct method Open (line 16) | func (d *driver) Open(url string) (source.Driver, error) { return nil,... type driverExample (line 18) | type driverExample struct method Open (line 22) | func (d *driverExample) Open(url string) (source.Driver, error) { function TestDriverExample (line 34) | func TestDriverExample(t *testing.T) { function TestPartialDriverInit (line 42) | func TestPartialDriverInit(t *testing.T) { function TestFirstWithNoMigrations (line 96) | func TestFirstWithNoMigrations(t *testing.T) { FILE: source/iofs/example_test.go function Example (line 17) | func Example() { FILE: source/iofs/iofs.go type driver (line 16) | type driver struct method Open (line 31) | func (d *driver) Open(url string) (source.Driver, error) { function New (line 21) | func New(fsys fs.FS, path string) (source.Driver, error) { type PartialDriver (line 41) | type PartialDriver struct method Init (line 49) | func (d *PartialDriver) Init(fsys fs.FS, path string) error { method Close (line 84) | func (d *PartialDriver) Close() error { method First (line 93) | func (d *PartialDriver) First() (version uint, err error) { method Prev (line 105) | func (d *PartialDriver) Prev(version uint) (prevVersion uint, err erro... method Next (line 117) | func (d *PartialDriver) Next(version uint) (nextVersion uint, err erro... method ReadUp (line 129) | func (d *PartialDriver) ReadUp(version uint) (r io.ReadCloser, identif... method ReadDown (line 145) | func (d *PartialDriver) ReadDown(version uint) (r io.ReadCloser, ident... method open (line 160) | func (d *PartialDriver) open(path string) (fs.File, error) { FILE: source/iofs/iofs_test.go function Test (line 12) | func Test(t *testing.T) { FILE: source/migration.go type Direction (line 8) | type Direction constant Down (line 11) | Down Direction = "down" constant Up (line 12) | Up Direction = "up" type Migration (line 18) | type Migration struct type Migrations (line 36) | type Migrations struct method Append (line 48) | func (i *Migrations) Append(m *Migration) (ok bool) { method buildIndex (line 68) | func (i *Migrations) buildIndex() { method First (line 78) | func (i *Migrations) First() (version uint, ok bool) { method Prev (line 85) | func (i *Migrations) Prev(version uint) (prevVersion uint, ok bool) { method Next (line 93) | func (i *Migrations) Next(version uint) (nextVersion uint, ok bool) { method Up (line 101) | func (i *Migrations) Up(version uint) (m *Migration, ok bool) { method Down (line 110) | func (i *Migrations) Down(version uint) (m *Migration, ok bool) { method findPos (line 119) | func (i *Migrations) findPos(version uint) int { function NewMigrations (line 41) | func NewMigrations() *Migrations { type uintSlice (line 129) | type uintSlice method Search (line 131) | func (s uintSlice) Search(x uint) int { FILE: source/migration_test.go function TestNewMigrations (line 7) | func TestNewMigrations(t *testing.T) { function TestAppend (line 11) | func TestAppend(t *testing.T) { function TestBuildIndex (line 15) | func TestBuildIndex(t *testing.T) { function TestFirst (line 19) | func TestFirst(t *testing.T) { function TestPrev (line 23) | func TestPrev(t *testing.T) { function TestUp (line 27) | func TestUp(t *testing.T) { function TestDown (line 31) | func TestDown(t *testing.T) { function TestFindPos (line 35) | func TestFindPos(t *testing.T) { FILE: source/parse.go function Parse (line 25) | func Parse(raw string) (*Migration, error) { FILE: source/parse_test.go function TestParse (line 7) | func TestParse(t *testing.T) { FILE: source/pkger/pkger.go function init (line 14) | func init() { type Pkger (line 20) | type Pkger struct method Open (line 29) | func (p *Pkger) Open(url string) (source.Driver, error) { function WithInstance (line 55) | func WithInstance(instance pkging.Pkger, path string) (source.Driver, er... type fsFunc (line 78) | type fsFunc method Open (line 81) | func (f fsFunc) Open(name string) (http.File, error) { FILE: source/pkger/pkger_test.go function Test (line 15) | func Test(t *testing.T) { function TestWithInstance (line 60) | func TestWithInstance(t *testing.T) { function TestOpen (line 107) | func TestOpen(t *testing.T) { function TestClose (line 146) | func TestClose(t *testing.T) { function registerPackageLevelInstance (line 156) | func registerPackageLevelInstance(t *testing.T, pkg pkging.Pkger) { function testInstance (line 162) | func testInstance(t *testing.T) pkging.Pkger { function createPkgerSubdir (line 171) | func createPkgerSubdir(t *testing.T, pkg pkging.Pkger, subdir string) { function createPkgerFile (line 177) | func createPkgerFile(t *testing.T, pkg pkging.Pkger, name string) { function inMemoryPkger (line 184) | func inMemoryPkger() (*mem.Pkger, error) { FILE: source/stub/stub.go function init (line 12) | func init() { type Config (line 16) | type Config struct type Stub (line 21) | type Stub struct method Open (line 28) | func (s *Stub) Open(url string) (source.Driver, error) { method Close (line 44) | func (s *Stub) Close() error { method First (line 48) | func (s *Stub) First() (version uint, err error) { method Prev (line 56) | func (s *Stub) Prev(version uint) (prevVersion uint, err error) { method Next (line 64) | func (s *Stub) Next(version uint) (nextVersion uint, err error) { method ReadUp (line 72) | func (s *Stub) ReadUp(version uint) (r io.ReadCloser, identifier strin... method ReadDown (line 79) | func (s *Stub) ReadDown(version uint) (r io.ReadCloser, identifier str... function WithInstance (line 36) | func WithInstance(instance interface{}, config *Config) (source.Driver, ... FILE: source/stub/stub_test.go function Test (line 10) | func Test(t *testing.T) { FILE: source/testing/testing.go function Test (line 23) | func Test(t *testing.T, d source.Driver) { function TestFirst (line 31) | func TestFirst(t *testing.T, d source.Driver) { function TestPrev (line 41) | func TestPrev(t *testing.T, d source.Driver) { function TestNext (line 70) | func TestNext(t *testing.T, d source.Driver) { function TestReadUp (line 99) | func TestReadUp(t *testing.T, d source.Driver) { function TestReadDown (line 141) | func TestReadDown(t *testing.T, d source.Driver) { FILE: testing/docker.go function NewDockerContainer (line 24) | func NewDockerContainer(t testing.TB, image string, env []string, cmd []... type DockerContainer (line 57) | type DockerContainer struct method PullImage (line 70) | func (d *DockerContainer) PullImage() (err error) { method Start (line 99) | func (d *DockerContainer) Start() error { method KeepForDebugging (line 139) | func (d *DockerContainer) KeepForDebugging() { method Remove (line 147) | func (d *DockerContainer) Remove() error { method Inspect (line 170) | func (d *DockerContainer) Inspect() error { method Logs (line 188) | func (d *DockerContainer) Logs() (io.ReadCloser, error) { method portMapping (line 202) | func (d *DockerContainer) portMapping(selectFirst bool, cPort int) (ho... method Host (line 231) | func (d *DockerContainer) Host() string { method Port (line 247) | func (d *DockerContainer) Port() uint { method PortFor (line 258) | func (d *DockerContainer) PortFor(cPort int) uint { method NetworkSettings (line 269) | func (d *DockerContainer) NetworkSettings() dockercontainer.NetworkSet... type dockerImagePullOutput (line 277) | type dockerImagePullOutput struct function pseudoRandStr (line 287) | func pseudoRandStr(n int) string { FILE: testing/testing.go type IsReadyFunc (line 13) | type IsReadyFunc type TestFunc (line 15) | type TestFunc type Version (line 17) | type Version struct function ParallelTest (line 23) | func ParallelTest(t *testing.T, versions []Version, readyFn IsReadyFunc,... function containerLogs (line 78) | func containerLogs(t *testing.T, c *DockerContainer) []byte { type Instance (line 97) | type Instance interface FILE: testing/testing_test.go function ExampleParallelTest (line 7) | func ExampleParallelTest() { FILE: util.go type MultiError (line 13) | type MultiError struct method Error (line 32) | func (m MultiError) Error() string { function NewMultiError (line 21) | func NewMultiError(errs ...error) MultiError { function suint (line 45) | func suint(n int) uint { function FilterCustomQuery (line 53) | func FilterCustomQuery(u *nurl.URL) *nurl.URL { FILE: util_test.go function TestSuintPanicsWithNegativeInput (line 8) | func TestSuintPanicsWithNegativeInput(t *testing.T) { function TestSuint (line 17) | func TestSuint(t *testing.T) { function TestFilterCustomQuery (line 23) | func TestFilterCustomQuery(t *testing.T) {