...

Package sqlcipher

import "github.com/golang-migrate/migrate/v4/database/sqlcipher"
Overview
Index

Overview ▾

Variables

var (
    ErrDatabaseDirty  = fmt.Errorf("database is dirty")
    ErrNilConfig      = fmt.Errorf("no config")
    ErrNoDatabaseName = fmt.Errorf("no database name")
)
var DefaultMigrationsTable = "schema_migrations"

func WithInstance

func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)

type Config

type Config struct {
    MigrationsTable string
    DatabaseName    string
    NoTxWrap        bool
}

type Sqlite

type Sqlite struct {
    // contains filtered or unexported fields
}

func (*Sqlite) Close

func (m *Sqlite) Close() error

func (*Sqlite) Drop

func (m *Sqlite) Drop() (err error)

func (*Sqlite) Lock

func (m *Sqlite) Lock() error

func (*Sqlite) Open

func (m *Sqlite) Open(url string) (database.Driver, error)

func (*Sqlite) Run

func (m *Sqlite) Run(migration io.Reader) error

func (*Sqlite) SetVersion

func (m *Sqlite) SetVersion(version int, dirty bool) error

func (*Sqlite) Unlock

func (m *Sqlite) Unlock() error

func (*Sqlite) Version

func (m *Sqlite) Version() (version int, dirty bool, err error)