db

package
v0.0.0-...-7943344 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatch = fmt.Errorf("no matching record")

ErrNoMatch is returned when we request a row that doesn't exist

View Source
var ErrUserForbidden = fmt.Errorf("user is forbidden")

ErrUserForbidden is returned when the current user has no access to execute the command

Functions

This section is empty.

Types

type Database

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

Database is a struct that contains references to db config and connection

func GetDefaultInstance

func GetDefaultInstance() *Database

GetDefaultInstance returns the default instance of Database

func (*Database) GetDB

func (d *Database) GetDB() *pg.DB

GetDB returns the *pg.DB connection

Jump to

Keyboard shortcuts

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