db

package
v0.0.0-...-4e1abb7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdapterPGSQL     = "postgres"
	AdapterSQLITE    = "sqlite"
	TestAdapterPGSQL = "test-postgres"

	DbNameDefault = "serverapi"
	DbNameTest    = "test"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IDb

type IDb interface {
	Connect(adapter string) error
	InitTables()
	Close() error
	Connection() *gorm.DB
}

func New

func New() IDb

Jump to

Keyboard shortcuts

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