models

package
v0.0.0-...-0737446 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Config de config.yaml

Functions

func CrudDelete

func CrudDelete(appid, tableid string, id string) error

CrudDelete as

func CrudExec

func CrudExec(sql string, aliasDB string) error

CrudExec as

func CrudInsert

func CrudInsert(appid string, tableid string, elements map[string]dico.Element) error

CrudInsert avec element.SQLout

func CrudList

func CrudList(appid string, tableid string, viewid string, view *dico.View, elements map[string]dico.Element) ([]orm.Params, error)

CrudList as

func CrudRead

func CrudRead(filter string, appid string, tableid string, id string, elements map[string]dico.Element) ([]orm.Params, error)

CrudRead as

func CrudSQL

func CrudSQL(sql string, aliasDB string) ([]orm.Params, error)

CrudSQL as

func CrudUpdate

func CrudUpdate(appid string, tableid string, id string, elements map[string]dico.Element) error

CrudUpdate avec element.SQLout

func EveryDay

func EveryDay(ctx context.Context) error

EveryDay as appelé par le planificateur des tâches tous les jours * CREATE TABLE "tasks" (

"id"	INTEGER,
"name"	TEXT,
"day"	INTEGER DEFAULT 0,
"month"	INTEGER DEFAULT 0,
"last_day"	INTEGER DEFAULT 0,
"last_month"	INTEGER DEFAULT 0,
"disabled"	INTEGER,
"sql"	TEXT,
PRIMARY KEY("id" AUTOINCREMENT)

)

func IfNotEmpty

func IfNotEmpty(chaine string, valTrue string, valFalse string) string

IfNotEmpty as

func ShellExec

func ShellExec(commande string) (out string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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