go_storage

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 10 Imported by: 3

README

go_storage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ALLTables

func ALLTables() (tables []*model.Table)

func AddAllTablesToIndexDb

func AddAllTablesToIndexDb(tables ...*model.Table)

func AddMissingFieldsNames

func AddMissingFieldsNames(o *model.Object)

func AddMissingFieldsNamesObject

func AddMissingFieldsNamesObject(d *model.DataIN, o *model.Object)

func ColumnsMap

func ColumnsMap(table_name string) (out map[string]model.Field)

func ExecuteMultipleCreate

func ExecuteMultipleCreate(T model.Table, objects []model.Object) (mg string, ok bool)

func Exists

func Exists(textResponse, objectSelect, sql string) (ok bool)

Exists verifica si existe un que es y algo en la base de datos según sql ej: "la base de datos","tiendadb","sql para la consulta"

func FieldExist

func FieldExist(table_name, field_name string) (exist bool)

func GetFieldLegendByName

func GetFieldLegendByName(o *model.Object, field_name string) (out_legend string)

ej: in name out Nombre

func GetFieldsTable

func GetFieldsTable(o *model.Object) []model.Field

func GetMapModel

func GetMapModel(o *model.Object) (out map[string]model.Field)

func GetModelBy

func GetModelBy(table_name string) *model.Table

func MakeSQLSELECT

func MakeSQLSELECT(option, TNAME string, obj map[string]string) (out string)

MakeSQLSELECT s(count(*),) tabla(jugador,usuario) id(2,7,12) genera un string sql según tabla y un maps clave valor

func NewConnection

func NewConnection(dbea dbEngineAdapter) *connection

func QueryWithoutANSWER

func QueryWithoutANSWER(sql, mje string) bool

QueryWithoutANSWER SinResultado ejecuta sql en bd con sin respuesta de mas de 1 operacion un error recibe sql y mensaje a mostrar en consola

func SelectValue

func SelectValue(sql string) (out string, ok bool)

SelectValue retorna valor de una consulta sql

func TableModelByObject

func TableModelByObject(o *model.Object) *model.Table

func TablesMap

func TablesMap() map[string]map[string]model.Field

func UpdateWithNewData

func UpdateWithNewData(o *model.Object, new_data map[string]string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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