Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adlio/schema
/ functions
Functions
152 in github.com/adlio/schema
⨍
Functions
152
◇
Types & classes
27
Function
TestApplyWithNoMigrations
(t *testing.T)
errors_test.go:55
Function
TestComputeMigrationPlanFailure
(t *testing.T)
errors_test.go:125
Function
TestCreateMigrationsTable
TestCreateMigrationsTable ensures that each dialect and test database can successfully create the schema_migrations table.
migrator_test.go:13
Function
TestDefaultDialect
(t *testing.T)
options_test.go:45
Function
TestDefaultTableName
(t *testing.T)
options_test.go:34
Function
TestFSMigrationsWithInvalidFiles
(t *testing.T)
embed_go116_test.go:39
Function
TestFailedMigration
TestFailedMigration ensures that a migration with a syntax error triggers an expected error when Apply() is run. This test is run on every dialect and
migrator_test.go:119
Function
TestGetAppliedMigrations
(t *testing.T)
applied-migration_test.go:9
Function
TestGetAppliedMigrationsErrorsWhenTheTableDoesntExist
(t *testing.T)
applied-migration_test.go:32
Function
TestGetAppliedMigrationsHasFriendlyScanError
(t *testing.T)
applied-migration_test.go:49
Function
TestLockAndUnlock
TestLockAndUnlock tests the Lock and Unlock mechanisms of each dialect and test database in isolation from any migrations actually being run.
migrator_test.go:35
Function
TestLockFailure
(t *testing.T)
errors_test.go:111
Function
TestMD5
(t *testing.T)
migration_test.go:8
Function
TestMSSQLCreateMigrationsTableConcurrentError
(t *testing.T)
mssql_test.go:122
Function
TestMSSQLGetLockModeScanError
(t *testing.T)
mssql_test.go:94
Function
TestMSSQLQuotedIdent
(t *testing.T)
mssql_test.go:46
Function
TestMSSQLQuotedTableName
(t *testing.T)
mssql_test.go:20
Function
TestMSSQLUnlockQueryError
(t *testing.T)
mssql_test.go:83
Function
TestMain
TestMain replaces the normal test runner for this package. It connects to Docker running on the local machine and launches testing database containers
main_test.go:21
Function
TestMigrationFromFile
(t *testing.T)
file_test.go:25
Function
TestMigrationFromFilePath
(t *testing.T)
file_test.go:9
Function
TestMigrationFromFilePathWithInvalidPath
(t *testing.T)
file_test.go:18
Function
TestMigrationFromFileWithUnreadableFile
(t *testing.T)
file_test.go:87
Function
TestMigrationsFromDirectoryPath
(t *testing.T)
file_test.go:38
Function
TestMigrationsFromDirectoryPathThrowsErrorForInvalidDirectory
(t *testing.T)
file_test.go:48
Function
TestMigrationsFromDirectoryPathThrowsErrorForInvalidGlob
(t *testing.T)
file_test.go:58
Function
TestMigrationsFromDirectoryPathThrowsErrorWithUnreadableFiles
(t *testing.T)
file_test.go:65
Function
TestMigrationsFromEmbedFS
(t *testing.T)
embed_go116_test.go:16
Function
TestMigrationsWithInvalidGlob
(t *testing.T)
embed_go116_test.go:34
Function
TestMultiSchemaSupport
TestMultiSchemaSupport ensures that each dialect and test database support having multiple tracking tables each tracking separate sets of migrations.
migrator_test.go:218
Function
TestMySQLQuotedIdent
(t *testing.T)
mysql_test.go:37
Function
TestMySQLQuotedTableName
(t *testing.T)
mysql_test.go:17
Function
TestMySQLTimeScanner
(t *testing.T)
mysql_test.go:55
Function
TestNewMigratorApplyChain
(t *testing.T)
migrator_test.go:290
Function
TestPostgreSQLQuotedIdent
(t *testing.T)
postgres_test.go:34
Function
TestPostgreSQLQuotedTableName
(t *testing.T)
postgres_test.go:16
Function
TestRunFailure
TestRunFailure ensures that a low-level connection or query-related failure triggers an expected error.
migrator_test.go:278
Function
TestSQLiteQuotedTableName
(t *testing.T)
sqlite_test.go:15
Function
TestSimpleLogger
(t *testing.T)
options_test.go:100
Function
TestSimultaneousApply
TestSimultaneousApply creates multiple Migrators and multiple distinct connections to each test database and attempts to call .Apply() on them all con
migrator_test.go:155
Function
TestSortMigrations
(t *testing.T)
migration_test.go:16
Function
TestUnlockFailure
(t *testing.T)
errors_test.go:118
Function
TestWithContextOption
(t *testing.T)
options_test.go:66
Function
TestWithDialectOption
(t *testing.T)
options_test.go:52
Function
TestWithLoggerOption
(t *testing.T)
options_test.go:78
Function
TestWithTableNameOptionWithSchema
(t *testing.T)
options_test.go:12
Function
TestWithTableNameOptionWithoutSchema
(t *testing.T)
options_test.go:23
Method
Unlock
Unlock implements the Locker interface to release the global lock after the migrations are run.
mysql.go:29
Method
Unlock
Unlock implements the Locker interface to release the global lock after the migrations are run. It first checks if we have the lock before trying to r
mssql.go:34
Method
Unlock
Unlock implements the Locker interface to release the global lock after the migrations are run.
postgres.go:31
Function
connectDB
(t *testing.T, name string)
main_test.go:96
Function
withTestDB
(t *testing.T, name string, f func(t *testing.T, tdb *TestDB))
main_test.go:88
← previous
101–152 of 152, ranked by callers