MCPcopy Create free account

hub / github.com/adlio/schema / functions

Functions152 in github.com/adlio/schema

FunctionTestApplyWithNoMigrations
(t *testing.T)
errors_test.go:55
FunctionTestComputeMigrationPlanFailure
(t *testing.T)
errors_test.go:125
FunctionTestCreateMigrationsTable
TestCreateMigrationsTable ensures that each dialect and test database can successfully create the schema_migrations table.
migrator_test.go:13
FunctionTestDefaultDialect
(t *testing.T)
options_test.go:45
FunctionTestDefaultTableName
(t *testing.T)
options_test.go:34
FunctionTestFSMigrationsWithInvalidFiles
(t *testing.T)
embed_go116_test.go:39
FunctionTestFailedMigration
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
FunctionTestGetAppliedMigrations
(t *testing.T)
applied-migration_test.go:9
FunctionTestGetAppliedMigrationsErrorsWhenTheTableDoesntExist
(t *testing.T)
applied-migration_test.go:32
FunctionTestGetAppliedMigrationsHasFriendlyScanError
(t *testing.T)
applied-migration_test.go:49
FunctionTestLockAndUnlock
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
FunctionTestLockFailure
(t *testing.T)
errors_test.go:111
FunctionTestMD5
(t *testing.T)
migration_test.go:8
FunctionTestMSSQLCreateMigrationsTableConcurrentError
(t *testing.T)
mssql_test.go:122
FunctionTestMSSQLGetLockModeScanError
(t *testing.T)
mssql_test.go:94
FunctionTestMSSQLQuotedIdent
(t *testing.T)
mssql_test.go:46
FunctionTestMSSQLQuotedTableName
(t *testing.T)
mssql_test.go:20
FunctionTestMSSQLUnlockQueryError
(t *testing.T)
mssql_test.go:83
FunctionTestMain
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
FunctionTestMigrationFromFile
(t *testing.T)
file_test.go:25
FunctionTestMigrationFromFilePath
(t *testing.T)
file_test.go:9
FunctionTestMigrationFromFilePathWithInvalidPath
(t *testing.T)
file_test.go:18
FunctionTestMigrationFromFileWithUnreadableFile
(t *testing.T)
file_test.go:87
FunctionTestMigrationsFromDirectoryPath
(t *testing.T)
file_test.go:38
FunctionTestMigrationsFromDirectoryPathThrowsErrorForInvalidDirectory
(t *testing.T)
file_test.go:48
FunctionTestMigrationsFromDirectoryPathThrowsErrorForInvalidGlob
(t *testing.T)
file_test.go:58
FunctionTestMigrationsFromDirectoryPathThrowsErrorWithUnreadableFiles
(t *testing.T)
file_test.go:65
FunctionTestMigrationsFromEmbedFS
(t *testing.T)
embed_go116_test.go:16
FunctionTestMigrationsWithInvalidGlob
(t *testing.T)
embed_go116_test.go:34
FunctionTestMultiSchemaSupport
TestMultiSchemaSupport ensures that each dialect and test database support having multiple tracking tables each tracking separate sets of migrations.
migrator_test.go:218
FunctionTestMySQLQuotedIdent
(t *testing.T)
mysql_test.go:37
FunctionTestMySQLQuotedTableName
(t *testing.T)
mysql_test.go:17
FunctionTestMySQLTimeScanner
(t *testing.T)
mysql_test.go:55
FunctionTestNewMigratorApplyChain
(t *testing.T)
migrator_test.go:290
FunctionTestPostgreSQLQuotedIdent
(t *testing.T)
postgres_test.go:34
FunctionTestPostgreSQLQuotedTableName
(t *testing.T)
postgres_test.go:16
FunctionTestRunFailure
TestRunFailure ensures that a low-level connection or query-related failure triggers an expected error.
migrator_test.go:278
FunctionTestSQLiteQuotedTableName
(t *testing.T)
sqlite_test.go:15
FunctionTestSimpleLogger
(t *testing.T)
options_test.go:100
FunctionTestSimultaneousApply
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
FunctionTestSortMigrations
(t *testing.T)
migration_test.go:16
FunctionTestUnlockFailure
(t *testing.T)
errors_test.go:118
FunctionTestWithContextOption
(t *testing.T)
options_test.go:66
FunctionTestWithDialectOption
(t *testing.T)
options_test.go:52
FunctionTestWithLoggerOption
(t *testing.T)
options_test.go:78
FunctionTestWithTableNameOptionWithSchema
(t *testing.T)
options_test.go:12
FunctionTestWithTableNameOptionWithoutSchema
(t *testing.T)
options_test.go:23
MethodUnlock
Unlock implements the Locker interface to release the global lock after the migrations are run.
mysql.go:29
MethodUnlock
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
MethodUnlock
Unlock implements the Locker interface to release the global lock after the migrations are run.
postgres.go:31
FunctionconnectDB
(t *testing.T, name string)
main_test.go:96
FunctionwithTestDB
(t *testing.T, name string, f func(t *testing.T, tdb *TestDB))
main_test.go:88
← previous101–152 of 152, ranked by callers