persistence

package
v1.2.1-rc-1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPgConnector added in v1.4.0

func NewPgConnector(cfg config.Database) *pgConnector

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(connector database.Connector) *Database

func (*Database) Connection added in v1.4.0

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

Connection establishes a connection or returns an existing one

func (*Database) Migrate added in v1.4.0

func (db *Database) Migrate()

Migrate auto-migrates the database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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