Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDSN = errors.New("invalid or missing database configuration")
ErrInvalidDSN error is returned, when the DSN configuration is incorrect, or empty.
Functions ¶
func GetResourcesFromDB ¶ added in v0.1.19
GetResourcesFromDB fetches the given model from the database.
func LinkObjects ¶
LinkObjects links objects by using the provided LinkFunction items.
func NewFromConfig ¶
func NewFromConfig(conf config.DatabaseConfig) (*bun.DB, error)
NewFromConfig creates a new bun.DB based on the provided config.DatabaseConfig spec.
Types ¶
Click to show internal directories.
Click to hide internal directories.