Documentation ¶
Index ¶
- 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
- type QueryResponse
- type Session
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InsanceData ¶
type InsanceData = map[string]interface{}
type QueryResponse ¶
type Session ¶
func (*Session) BatchRealAssociations ¶
func (s *Session) BatchRealAssociations( association *graph.Association, ids []uint64, args graph.QueryArg, ) []InsanceData
func (*Session) DeleteAssociationPovit ¶
func (s *Session) DeleteAssociationPovit(povit *data.AssociationPovit)
func (*Session) Query ¶
func (s *Session) Query(entityName string, args map[string]interface{}, fieldNames []string) QueryResponse
func (*Session) QueryAssociatedInstances ¶
func (s *Session) QueryAssociatedInstances(a *graph.Association, ownerId uint64) []InsanceData
func (*Session) QueryByIds ¶
func (s *Session) QueryByIds(entityName string, ids []interface{}) []InsanceData
func (*Session) QueryOneById ¶
func (*Session) SaveAssociation ¶
func (s *Session) SaveAssociation(r *data.AssociationRef, ownerId uint64) error
func (*Session) SaveAssociationPovit ¶
func (s *Session) SaveAssociationPovit(povit *data.AssociationPovit)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.