Documentation ¶
Index ¶
- Variables
- func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
- type Config
- type Snowflake
- func (p *Snowflake) Close() error
- func (p *Snowflake) Drop() (err error)
- func (p *Snowflake) Lock() error
- func (p *Snowflake) Open(url string) (database.Driver, error)
- func (p *Snowflake) Run(migration io.Reader) error
- func (p *Snowflake) SetVersion(version int, dirty bool) error
- func (p *Snowflake) Unlock() error
- func (p *Snowflake) Version() (version int, dirty bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilConfig = fmt.Errorf("no config") ErrNoDatabaseName = fmt.Errorf("no database name") ErrNoPassword = fmt.Errorf("no password") ErrNoSchema = fmt.Errorf("no schema") ErrNoSchemaOrDatabase = fmt.Errorf("no schema/database name") ErrInvalidParameterFormat = fmt.Errorf("invalid parameter format") )
View Source
var DefaultMigrationsTable = "schema_migrations"
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.