Documentation ¶
Index ¶
- Variables
- func DoRetry(ctx context.Context, f func() error) error
- func DropAll(db *gorm.DB) error
- func FindDatasetByName(db *gorm.DB, name string) (model.Dataset, error)
- func Open(connString string, config *gorm.Config) (*gorm.DB, io.Closer, error)
- func OpenFromCLI(c *cli.Context) (*gorm.DB, io.Closer, error)
- func OpenInMemory() (*gorm.DB, io.Closer, error)
- func OpenWithLogger(connString string) (*gorm.DB, io.Closer, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDatabaseNotSupported = errors.New("database not supported")
View Source
var SupportedTestDialects = []string{"postgres", "mysql", "sqlite"}
View Source
var TestConnectionString = "sqlite:file::memory:?cache=shared"
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.