firebird

package
v4.15.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 11 Imported by: 0

README

firebird

firebirdsql://user:password@servername[:port_number]/database_name_or_file[?params1=value1[&param2=value2]...]

URL Query WithInstance Config Description
x-migrations-table MigrationsTable Name of the migrations table
auth_plugin_name Authentication plugin name. Srp256/Srp/Legacy_Auth are available. (default is Srp)
column_name_to_lower Force column name to lower. (default is false)
role Role name
tzname Time Zone name. (For Firebird 4.0+)
wire_crypt Enable wire data encryption or not. For Firebird 3.0+ (default is true)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMigrationsTable = "schema_migrations"
View Source
var (
	ErrNilConfig = fmt.Errorf("no config")
)

Functions

func WithInstance

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

Types

type Config

type Config struct {
	DatabaseName    string
	MigrationsTable string
}

type Firebird

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

func (*Firebird) Close

func (f *Firebird) Close() error

func (*Firebird) Drop

func (f *Firebird) Drop() (err error)

func (*Firebird) Lock

func (f *Firebird) Lock() error

func (*Firebird) Open

func (f *Firebird) Open(dsn string) (database.Driver, error)

func (*Firebird) Run

func (f *Firebird) Run(migration io.Reader) error

func (*Firebird) SetVersion

func (f *Firebird) SetVersion(version int, dirty bool) error

func (*Firebird) Unlock

func (f *Firebird) Unlock() error

func (*Firebird) Version

func (f *Firebird) Version() (version int, dirty bool, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL