dao

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package dao provides data access primitives and lifecycle helpers, including initialization, maintenance, lookups, and auditing support.

Index

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 CheckDAOReadyState(table string, action audit.Action, isDaoReady bool)

func GetDBNameFromPath

func GetDBNameFromPath(t string) string

func GetStructType

func GetStructType(data any) string

func Initialise

func Initialise(cfg *commonConfig.Settings) error

func IsValidFieldInStruct

func IsValidFieldInStruct(fromField string, data any) error

func IsValidTypeForField added in v1.2.39

func IsValidTypeForField(field string, data, forStruct any) error

Types

type Bool added in v1.3.5

type Bool struct {
	Value string
}

func (*Bool) Bool added in v1.3.5

func (b *Bool) Bool() bool

func (*Bool) Get added in v1.3.5

func (b *Bool) Get() bool

func (*Bool) IsFalse added in v1.3.5

func (b *Bool) IsFalse() bool

func (*Bool) IsTrue added in v1.3.5

func (b *Bool) IsTrue() bool

func (*Bool) Set added in v1.3.5

func (b *Bool) Set(in bool) Bool

func (*Bool) String added in v1.3.5

func (b *Bool) String() string

type Float added in v1.3.5

type Float struct {
	Value string
}

func (*Float) Float added in v1.3.5

func (f *Float) Float() float64

func (*Float) Get added in v1.3.5

func (f *Float) Get() float64

func (*Float) Set added in v1.3.5

func (f *Float) Set(in float64) Float

func (*Float) String added in v1.3.5

func (f *Float) String() string

type Int added in v1.3.5

type Int struct {
	Value string
}

func (*Int) Add added in v1.3.6

func (i *Int) Add(other Int) Int

func (*Int) Decrement added in v1.3.6

func (i *Int) Decrement() Int

func (*Int) DecrementBy added in v1.3.6

func (i *Int) DecrementBy(other Int) Int

func (*Int) DivideBy added in v1.3.6

func (i *Int) DivideBy(other Int) Int

func (*Int) Equals added in v1.3.6

func (i *Int) Equals(other Int) bool

func (*Int) Get added in v1.3.5

func (i *Int) Get() int

func (*Int) GreaterThan added in v1.3.6

func (i *Int) GreaterThan(other Int) bool

func (*Int) GreaterThanOrEqual added in v1.3.6

func (i *Int) GreaterThanOrEqual(other Int) bool

func (*Int) Increment added in v1.3.6

func (i *Int) Increment() Int

func (*Int) IncrumentBy added in v1.3.6

func (i *Int) IncrumentBy(other Int) Int

func (*Int) Int added in v1.3.5

func (i *Int) Int() int

func (*Int) LessThan added in v1.3.6

func (i *Int) LessThan(other Int) bool

func (*Int) LessThanOrEqual added in v1.3.6

func (i *Int) LessThanOrEqual(other Int) bool

func (*Int) MultiplyBy added in v1.3.6

func (i *Int) MultiplyBy(other Int) Int

func (*Int) Set added in v1.3.5

func (i *Int) Set(in int) Int

func (*Int) String added in v1.3.5

func (i *Int) String() string

func (*Int) Subtract added in v1.3.6

func (i *Int) Subtract(other Int) Int

type StormBool added in v1.2.54

type StormBool struct {
	State string
}

StormBool is a boolean type that can be marshalled to and from a string, this has been created as Storm does not support boolean types properly

func (*StormBool) Bool added in v1.2.54

func (sb *StormBool) Bool() bool

func (*StormBool) IsFalse added in v1.2.54

func (sb *StormBool) IsFalse() bool

func (*StormBool) IsTrue added in v1.2.54

func (sb *StormBool) IsTrue() bool

func (*StormBool) Set added in v1.2.54

func (sb *StormBool) Set(b bool)

func (*StormBool) String added in v1.2.54

func (sb *StormBool) String() string

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.

Jump to

Keyboard shortcuts

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