Versions in this module Expand all Collapse all v0 v0.1.0 Mar 11, 2024 Changes in this version + func CreateTable(table *table.Table, undoList *[]string, dbx *db.Dbx) error + func DbString(cfg db.DbConfig) string + func DeleteTable(table *table.Table, undoList *[]string, dbx *db.Dbx) error + func IsEntityExists(name string, dbConfig db.DbConfig) bool + func Migrage(d *model.Diff, dbConfig db.DbConfig) + func ModifyTable(tableDiff *model.TableDiff, undoList *[]string, dbx *db.Dbx) error + type InsanceData = map[string]interface + type QueryResponse struct + Nodes []map[string]interface{} + Total int + type Session struct + Dbx *db.Dbx + func Open(dbConfig db.DbConfig, m *model.Model) (*Session, error) + func OpenWithoutRepository(dbConfig db.DbConfig) (*Session, error) + func (s *Session) BatchRealAssociations(association *graph.Association, ids []uint64, args graph.QueryArg) []InsanceData + func (s *Session) BeginTx() error + func (s *Session) ClearTx() + func (s *Session) Commit() error + func (s *Session) CreateId() int + func (s *Session) DeleteAssociationPovit(povit *data.AssociationPovit) + func (s *Session) DeleteInstance(entityName string, id shared.ID) + func (s *Session) Query(entityName string, args map[string]interface{}, fieldNames []string) QueryResponse + func (s *Session) QueryAssociatedInstances(a *graph.Association, ownerId uint64) []InsanceData + func (s *Session) QueryByIds(entityName string, ids []interface{}) []InsanceData + func (s *Session) QueryOne(entityName string, args map[string]interface{}) interface{} + func (s *Session) QueryOneById(entityName string, id interface{}) interface{} + func (s *Session) SaveAssociation(r *data.AssociationRef, ownerId uint64) error + func (s *Session) SaveAssociationPovit(povit *data.AssociationPovit) + func (s *Session) SaveOne(entityName string, object map[string]interface{}) (uint64, error)