database

package
v0.2.39 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0, MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDatabaseNotSupported = errors.New("database not supported")

Functions

func DoRetry

func DoRetry(f func() error) error

func DropAll

func DropAll(db *gorm.DB) error

func FindDatasetByName

func FindDatasetByName(db *gorm.DB, name string) (model.Dataset, error)

func Open

func Open(connString string, config *gorm.Config) (*gorm.DB, error)

func OpenFromCLI added in v0.2.28

func OpenFromCLI(c *cli.Context) (*gorm.DB, error)

func OpenInMemory

func OpenInMemory() (*gorm.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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