db

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyTables added in v0.2.0

func EmptyTables(db *goqu.Database, tables ...string) error

EmptyTables is used to empty a collection of tables. This may be useful if truncating a table is not possible.

Types

type Handles added in v0.6.0

type Handles struct {
	Std  *sql.DB
	Goqu *goqu.Database
	Gorm *gorm.DB
}

Handles is a collection of database handles.

The contained handles are all using the same underlying SQL connection.

func SetupAndMigratePostgresDB added in v0.2.0

func SetupAndMigratePostgresDB(dsn string, maxConnections int) (Handles, error)

func SetupPostgresDB added in v0.2.0

func SetupPostgresDB(dsn string, maxConnections int) (Handles, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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