Documentation
¶
Overview ¶
Package dao provides data access primitives and lifecycle helpers, including initialization, maintenance, lookups, and auditing support.
Index ¶
- Variables
- func CheckDAOReadyState(table string, action audit.Action, isDaoReady bool)
- func GetDBNameFromPath(t string) string
- func GetStructType(data any) string
- func Initialise(cfg *commonConfig.Settings) error
- func IsValidFieldInStruct(fromField string, data any) error
- func IsValidTypeForField(field string, data, forStruct any) error
- type StormBool
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *storm.DB
View Source
var DBName string = "default"
View Source
var DBVersion = 1
Functions ¶
func CheckDAOReadyState ¶
func GetDBNameFromPath ¶
func GetStructType ¶
func Initialise ¶
func Initialise(cfg *commonConfig.Settings) error
func IsValidFieldInStruct ¶
func IsValidTypeForField ¶ added in v1.2.39
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package actions contains models and helpers related to DAO actions.
|
Package actions contains models and helpers related to DAO actions. |
|
Package audit contains DAO auditing structures and helpers.
|
Package audit contains DAO auditing structures and helpers. |
|
Package database provides low-level database connectivity and helpers used by the DAO layer.
|
Package database provides low-level database connectivity and helpers used by the DAO layer. |
|
Package lookup provides generic lookup utilities used by DAO components.
|
Package lookup provides generic lookup utilities used by DAO components. |
|
Package maintenance contains database maintenance tasks such as pruning and backup orchestration.
|
Package maintenance contains database maintenance tasks such as pruning and backup orchestration. |
Click to show internal directories.
Click to hide internal directories.