database

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(opts dbo.Options) (value *dbo.TxDB, err error)

func Migrate

func Migrate(db *dbo.TxDB, seed ...bool) (err error)

func Migrations

func Migrations(models ...interface{})

func Seed

func Seed(db *dbo.TxDB) (err error)

func Seeders

func Seeders(handlers ...SeederHandler)

Types

type SeederHandler

type SeederHandler func(db *dbo.TxDB) error

Jump to

Keyboard shortcuts

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