sql

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: LGPL-2.1 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SqlDBErr error
View Source
var SqlDb *gorm.DB
View Source
var Triggers = map[string]Trigger{}

Functions

func EventSyncedTrigger added in v1.2.0

func EventSyncedTrigger(dbDriver string, table string, counterTable string) (Trigger, TriggerFunction)

func GetTableName added in v1.2.0

func GetTableName(table any, db *gorm.DB) string

func Init

func Init(cfg *configs.MainConfiguration)

func InitializeDb

func InitializeDb(driver string, dsn string) (*gorm.DB, error)

Types

type Trigger added in v1.2.0

type Trigger string

type TriggerFunction added in v1.2.0

type TriggerFunction string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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