database

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 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 MustOpenFromCLI

func MustOpenFromCLI(c *cli.Context) *gorm.DB

func Open

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

func OpenInMemory

func OpenInMemory() *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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