Documentation ¶
Index ¶
- Variables
- func CloseDB() error
- func DecodeBase64(data string) []byte
- func DecodeTime(v int64) time.Time
- func DelConfigs(node string) error
- func DeleteDB() error
- func EncodeBase64(data []byte) string
- func EncodeTime(t time.Time) int64
- func Exec(key string, m Args) (sql.Result, error)
- func GetConfig(node string, key string) (s string, i int64, b []byte, ok bool)
- func LoadSQLFromFile(name string) error
- func OpenDB(dbPath string) error
- func Query(key string, m Args) (*sql.Rows, error)
- func QueryEx[T any](key string, m Args, f func(dest ...any) T) ([]T, error)
- func QueryRow(key string, m Args, dest ...any) error
- func SetConfig(node string, key string, s string, i int64, b []byte) error
- type Args
Constants ¶
This section is empty.
Variables ¶
View Source
var DbPath string
View Source
var ErrNoRows = sql.ErrNoRows
View Source
var InitDDL string
Functions ¶
func DecodeBase64 ¶
func DecodeTime ¶
func DelConfigs ¶
func EncodeBase64 ¶
func EncodeTime ¶
func LoadSQLFromFile ¶
LoadSQLFromFile loads the sql queries from the provided file path. It panics in case the file cannot be loaded
Types ¶
Click to show internal directories.
Click to hide internal directories.