database

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqliteDb

type SqliteDb struct {
	DB     *sql.DB
	Closer func()
}

SqliteDb object

func InitDb

func InitDb(dbFilePath string) (*SqliteDb, error)

InitDb initializes the db

func (*SqliteDb) Migrate

func (sq *SqliteDb) Migrate() error

Migrate a db

Jump to

Keyboard shortcuts

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