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
Click to show internal directories.
Click to hide internal directories.