persistence

package
v0.1.0-alpha-6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(dbConfig config.Database) *gorm.DB

Establish connection to the Postgres Database

func ConnectWithMigration

func ConnectWithMigration(config config.Database) *gorm.DB

Connect and Migrate

Types

type Database added in v1.4.0

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase added in v1.4.0

func NewDatabase(config config.Database) *Database

func (*Database) GetConnection

func (db *Database) GetConnection() *gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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