Documentation ¶
Index ¶
- Variables
- func InitDB(filename string, remove bool) (*sqlx.DB, func(), error)
- func MigrateExec(args []string) error
- func OpenDB(opts DatabaseOptions) (*sqlx.DB, error)
- func Seed(dbx *sqlx.DB) error
- func SqliteVersion(dbx *sqlx.DB) string
- func TestDB(filename string) (*sqlx.DB, func(), error)
- type DatabaseOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Defaults = DatabaseOptions{ Filename: "./sparq.db", SkipVersionCheck: false, } )
View Source
var (
InstanceHostname string = "localhost.dev"
)
View Source
var Migrations embed.FS
Functions ¶
func MigrateExec ¶
func SqliteVersion ¶
Types ¶
type DatabaseOptions ¶
Click to show internal directories.
Click to hide internal directories.