db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

Database wraps the database connection.

func New

func New(connection string, logger *zerolog.Logger) (*Database, error)

New creates a new wrapper for the database and initialize it.

func (*Database) GetDBCon

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

GetDBCon gets the wrapped database connection.

func (*Database) Provision

func (db *Database) Provision(filename string) error

Provision initializes the database with the contents of the provision file.

Jump to

Keyboard shortcuts

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