Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adlio/schema
/ types & classes
Types & classes
27 in github.com/adlio/schema
⨍
Functions
152
◇
Types & classes
27
↓ 1 callers
TypeAlias
StrLog
options_test.go:89
Struct
AppliedMigration
AppliedMigration represents a successfully-executed migration. It embeds Migration, and adds fields for execution results. This type is what records p
applied-migration.go:11
Struct
BadDB
BadDB implements the interface for the *sql.DB Conn() method in a way that always fails
errors_test.go:39
Struct
BadQueryer
BadQueryer implements the Connection interface, but fails on every call to Exec or Query. The error message will include the SQL statement to help ver
errors_test.go:27
Interface
Connection
Connection defines the interface for a *sql.Conn, which can both start a new transaction and run queries.
schema.go:24
Interface
DB
DB defines the interface for a *sql.DB, which can be used to get a concrete connection to the database.
schema.go:18
Interface
Dialect
Dialect defines the minimal interface for a database dialect. All dialects must implement functions to create the migrations table, get all applied mi
dialect.go:9
Interface
File
File wraps the standard library io.Read and os.File.Name methods
file.go:59
Interface
Locker
Locker defines an optional Dialect extension for obtaining and releasing a global database lock during the running of migrations. This feature is supp
dialect.go:20
Interface
Logger
Logger is the interface for logging operations of the logger. By default the migrator operates silently. Providing a Logger enables output of the migr
options.go:52
Struct
Migration
Migration is a yet-to-be-run change to the schema. This is the type which is provided to Migrator.Apply to request a schema change.
migration.go:11
Struct
Migrator
Migrator is an instance customized to perform migrations on a particular database against a particular tracking table and with a particular dialect de
migrator.go:12
FuncType
Option
Option supports option chaining when creating a Migrator. An Option is a function which takes a Migrator and returns a Migrator with an Option modifie
options.go:8
Interface
Queryer
Queryer is something which can execute a Query (either a sql.DB or a sql.Tx)
schema.go:31
Struct
TestDB
TestDB represents a specific database instance against which we would like to run database migration tests.
testdb_test.go:18
Interface
Transactor
Transactor defines the interface for the Begin method from the *sql.DB
schema.go:37
TypeAlias
failedReader
file_test.go:77
Struct
mssqlBadQueryer
mssqlBadQueryer implements the Queryer interface but fails on specific queries
mssql_test.go:67
Struct
mssqlDialect
mssql.go:17
Struct
mysqlDialect
mysql.go:16
Struct
mysqlTime
mysql.go:121
Struct
nullMySQLLogger
mysql_test.go:87
Struct
postgresDialect
postgres.go:18
Struct
qtnTest
mssql_test.go:21
Struct
qtnTest
mysql_test.go:18
Struct
qtnTest
postgres_test.go:17
Struct
sqliteDialect
sqlite.go:14