Documentation
¶
Index ¶
- Constants
- func WrapContext(ctx context.Context, tx *gorm.DB) context.Context
- type ConnectionConfig
- type Manager
- type MigrationConfig
- type Option
- func WithConnection(maxOpen int, maxIdle int, maxLifetime time.Duration, execTimeout time.Duration) Option
- func WithDataSource(source Source) Option
- func WithLogger(logger log.Logger) Option
- func WithMigration(sqlDir string, version uint) Option
- func WithName(name string) Option
- func WithType(dbtype string) Option
- type Source
Constants ¶
View Source
const ( SQLite = "sqlite" MySQL = "mysql" Postgres = "postgres" Clickhouse = "clickhouse" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionConfig ¶
type Manager ¶
type MigrationConfig ¶
type Option ¶
type Option func(*manager)
func WithConnection ¶
func WithDataSource ¶
func WithLogger ¶
func WithMigration ¶
Click to show internal directories.
Click to hide internal directories.