Documentation
¶
Index ¶
- Variables
- func WithInstance(pool *sqlitex.Pool, config *Config) (database.Driver, error)
- type Config
- type SqlitexDriver
- func (s *SqlitexDriver) Close() error
- func (s *SqlitexDriver) Drop() error
- func (s *SqlitexDriver) Lock() error
- func (s *SqlitexDriver) Open(url string) (database.Driver, error)
- func (s *SqlitexDriver) Run(migration io.Reader) error
- func (s *SqlitexDriver) SetVersion(version int, dirty bool) error
- func (s *SqlitexDriver) Unlock() error
- func (s *SqlitexDriver) Version() (int, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMigrationsTable = "schema_migrations"
View Source
var ( //ErrDatabaseDirty = fmt.Errorf("database is dirty") ErrNilConfig = fmt.Errorf("no config") )
Functions ¶
Types ¶
type SqlitexDriver ¶
type SqlitexDriver struct {
// contains filtered or unexported fields
}
func (*SqlitexDriver) Close ¶
func (s *SqlitexDriver) Close() error
func (*SqlitexDriver) Drop ¶
func (s *SqlitexDriver) Drop() error
func (*SqlitexDriver) Lock ¶
func (s *SqlitexDriver) Lock() error
func (*SqlitexDriver) SetVersion ¶
func (s *SqlitexDriver) SetVersion(version int, dirty bool) error
func (*SqlitexDriver) Unlock ¶
func (s *SqlitexDriver) Unlock() error
Click to show internal directories.
Click to hide internal directories.