Documentation ¶
Index ¶
- Constants
- func NewPersister(config Config) (persistence.Persister, error)
- type Config
- type Migrator
- func (m *Migrator) Close() (error, error)
- func (m *Migrator) NeedsMigration() (bool, error)
- func (m *Migrator) Printf(format string, v ...interface{})
- func (m *Migrator) Reset() error
- func (m *Migrator) Status() (current uint, latest uint, err error)
- func (m *Migrator) Up() error
- func (m *Migrator) Verbose() bool
- type SQLite
Constants ¶
View Source
const ( DialectSQLite3 = "sqlite3" DialectPostgres = "postgres" )
Variables ¶
This section is empty.
Functions ¶
func NewPersister ¶
func NewPersister(config Config) (persistence.Persister, error)
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func (*Migrator) NeedsMigration ¶
Click to show internal directories.
Click to hide internal directories.