dao

package
v1.2.57 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

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 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

Jump to

Keyboard shortcuts

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