firebird

package
v4.17.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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