package sqlcipher
import "github.com/golang-migrate/migrate/v4/database/sqlcipher"
Index ¶
- Variables
- func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
- type Config
- type Sqlite
- func (m *Sqlite) Close() error
- func (m *Sqlite) Drop() (err error)
- func (m *Sqlite) Lock() error
- func (m *Sqlite) Open(url string) (database.Driver, error)
- func (m *Sqlite) Run(migration io.Reader) error
- func (m *Sqlite) SetVersion(version int, dirty bool) error
- func (m *Sqlite) Unlock() error
- func (m *Sqlite) Version() (version int, dirty bool, err error)
Variables ¶
var ( ErrDatabaseDirty = fmt.Errorf("database is dirty") ErrNilConfig = fmt.Errorf("no config") ErrNoDatabaseName = fmt.Errorf("no database name") )
var DefaultMigrationsTable = "schema_migrations"
Functions ¶
func WithInstance ¶
Types ¶
type Config ¶
type Sqlite ¶
type Sqlite struct {
// contains filtered or unexported fields
}
func (*Sqlite) Close ¶
func (*Sqlite) Drop ¶
func (*Sqlite) Lock ¶
func (*Sqlite) Open ¶
func (*Sqlite) Run ¶
func (*Sqlite) SetVersion ¶
func (*Sqlite) Unlock ¶
func (*Sqlite) Version ¶
Source Files ¶
- Version
- v4.18.2 (latest)
- Published
- Jan 27, 2025
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 1 week ago –
Tools for package owners.