Documentation ¶
Index ¶
- type DynDB
- func (d *DynDB) AddColumn(tenantId, gslug, tslug string, model *xbprint.NewColumn) error
- func (d *DynDB) AddColumnFRef(tenantId, gslug, tslug string, model *entities.ColumnFKRef) error
- func (d *DynDB) AddFTSIndex(tenantId, gslug, tslug string, model *entities.FTSIndex) error
- func (d *DynDB) AddIndex(tenantId, gslug, tslug string, model *entities.Index) error
- func (d *DynDB) AddTable(tenantId, gslug string, model *xbprint.NewTable) error
- func (d *DynDB) AddUniqueIndex(tenantId, gslug, tslug string, model *entities.Index) error
- func (d *DynDB) DelView(tenantId, gslug, tslug string, id int64) error
- func (d *DynDB) DeleteColumn(tenantId, gslug, tslug, cslug string) error
- func (d *DynDB) DeleteGroup(tenantId, gslug string) error
- func (d *DynDB) DeleteRow(txid uint32, req dyndb.DeleteRowReq) error
- func (d *DynDB) DeleteRowBatch(txid uint32, req dyndb.DeleteRowBatchReq) ([]int64, error)
- func (d *DynDB) DeleteRowMulti(txid uint32, req dyndb.DeleteRowMultiReq) error
- func (d *DynDB) DeleteTable(tenantId, gslug, tslug string) error
- func (d *DynDB) EditColumn(tenantId, gslug, tslug, cslug string, data *entities.ColumnPartial) error
- func (d *DynDB) EditGroup(tenantId string, gslug string, model *entities.TableGroupPartial) error
- func (d *DynDB) EditTable(tenantId, gslug, tslug string, model *entities.TablePartial) error
- func (d *DynDB) FTSQuery(txid uint32, req dyndb.FTSQueryReq) (*dyndb.QueryResult, error)
- func (d *DynDB) GetCache() dyndb.DCache
- func (d *DynDB) GetColumn(tenantId, gslug, tslug, cslug string) (*entities.Column, error)
- func (d *DynDB) GetDriver() any
- func (d *DynDB) GetGroup(tenantId, gslug string) (*entities.TableGroup, error)
- func (d *DynDB) GetRow(txid uint32, req dyndb.GetRowReq) (map[string]interface{}, error)
- func (d *DynDB) GetTable(tenantId, gslug, tslug string) (*entities.Table, error)
- func (d *DynDB) GetView(tenantId, gslug, tslug string, id int64) (*entities.DataView, error)
- func (d *DynDB) GroupExecute(tenantId, gslug, qstr string) error
- func (d *DynDB) JoinQuery(txid uint32, req dyndb.JoinReq) (*dyndb.JoinResult, error)
- func (d *DynDB) ListActivity(tenantId, group, table string, rowId int) ([]*entities.DynActivity, error)
- func (d *DynDB) ListActivityByAlt(tenantId, group, table string, alt string) ([]*entities.DynActivity, error)
- func (d *DynDB) ListColumnRef(tenantId, gslug, tslug string) ([]*entities.ColumnFKRef, error)
- func (d *DynDB) ListColumns(tenantId, gslug, tslug string) ([]*entities.Column, error)
- func (d *DynDB) ListFKRef(tenantId, gslug, tslug string) ([]*entities.Index, error)
- func (d *DynDB) ListGroup(tenantId string, cond map[string]any) ([]*entities.TableGroup, error)
- func (d *DynDB) ListIndex(tenantId, gslug, tslug string) ([]*entities.Index, error)
- func (d *DynDB) ListReverseColumnRef(tenantId, gslug, tslug string) ([]*entities.Column, error)
- func (d *DynDB) ListTables(tenantId, gslug string) ([]*entities.Table, error)
- func (d *DynDB) ListView(tenantId, gslug, tslug string) ([]*entities.DataView, error)
- func (d *DynDB) MigrateSchema(tenantId string, opts step.MigrateOptions) error
- func (d *DynDB) ModifyView(tenantId, gslug, tslug string, id int64, data map[string]interface{}) error
- func (d *DynDB) MultiJoinQuery(txid uint32, req dyndb.MultiJoinReq) (*dyndb.MultiJoinResult, error)
- func (d *DynDB) NewActivity(tenantId, group, table string, record *entities.DynActivity) (int64, error)
- func (d *DynDB) NewBatchRows(txid uint32, req dyndb.NewBatchRowReq) ([]int64, error)
- func (d *DynDB) NewGroup(tenantId string, model *xbprint.NewTableGroup) error
- func (d *DynDB) NewRow(txid uint32, req dyndb.NewRowReq) (int64, error)
- func (d *DynDB) NewView(tenantId string, model *entities.DataView) error
- func (d *DynDB) QueryActivity(tenantId, group, table string, query *entities.ActivityQuery) ([]*entities.DynActivity, error)
- func (d *DynDB) RefLoad(txid uint32, tenantId, gslug string, req *dyndb.RefLoadReq) (*dyndb.QueryResult, error)
- func (d *DynDB) RefResolve(txid uint32, tenantId, gslug string, req *dyndb.RefResolveReq) (*dyndb.QueryResult, error)
- func (d *DynDB) RemoveFKRef(tenantId, gslug, tslug, refslug string) error
- func (d *DynDB) RemoveIndex(tenantId, gslug, tslug, slug string) error
- func (d *DynDB) ReverseRefLoad(txid uint32, tenantId, gslug string, req *dyndb.RevRefLoadReq) (*dyndb.QueryResult, error)
- func (d *DynDB) SimpleQuery(txid uint32, req dyndb.SimpleQueryReq) (*dyndb.QueryResult, error)
- func (d *DynDB) SqlQueryRaw(txid uint32, tenantId, group, qstr string) (any, error)
- func (d *DynDB) SqlQueryScopped(txid uint32, tenantId, group, qstr string) (any, error)
- func (d *DynDB) TemplateQuery(txid uint32, req dyndb.TemplateQueryReq) (*dyndb.QueryResult, error)
- func (d *DynDB) UpdateRow(txid uint32, req dyndb.UpdateRowReq) (map[string]interface{}, error)
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynDB ¶
type DynDB struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ucore.DynDBOptions) *DynDB
func (*DynDB) AddColumnFRef ¶
func (d *DynDB) AddColumnFRef(tenantId, gslug, tslug string, model *entities.ColumnFKRef) error
func (*DynDB) AddFTSIndex ¶
func (*DynDB) AddUniqueIndex ¶
func (*DynDB) DeleteColumn ¶
func (*DynDB) DeleteGroup ¶
func (*DynDB) DeleteRowBatch ¶
func (*DynDB) DeleteRowMulti ¶
func (d *DynDB) DeleteRowMulti(txid uint32, req dyndb.DeleteRowMultiReq) error
func (*DynDB) DeleteTable ¶
func (*DynDB) EditColumn ¶
func (d *DynDB) EditColumn(tenantId, gslug, tslug, cslug string, data *entities.ColumnPartial) error
func (*DynDB) EditTable ¶
func (d *DynDB) EditTable(tenantId, gslug, tslug string, model *entities.TablePartial) error
func (*DynDB) FTSQuery ¶
func (d *DynDB) FTSQuery(txid uint32, req dyndb.FTSQueryReq) (*dyndb.QueryResult, error)
func (*DynDB) GetGroup ¶
func (d *DynDB) GetGroup(tenantId, gslug string) (*entities.TableGroup, error)
func (*DynDB) GroupExecute ¶
func (*DynDB) ListActivity ¶
func (*DynDB) ListActivityByAlt ¶
func (*DynDB) ListColumnRef ¶
func (d *DynDB) ListColumnRef(tenantId, gslug, tslug string) ([]*entities.ColumnFKRef, error)
func (*DynDB) ListColumns ¶
func (*DynDB) ListReverseColumnRef ¶
func (*DynDB) ListTables ¶
func (*DynDB) MigrateSchema ¶
func (d *DynDB) MigrateSchema(tenantId string, opts step.MigrateOptions) error
func (*DynDB) ModifyView ¶
func (*DynDB) MultiJoinQuery ¶
func (d *DynDB) MultiJoinQuery(txid uint32, req dyndb.MultiJoinReq) (*dyndb.MultiJoinResult, error)
func (*DynDB) NewActivity ¶
func (*DynDB) NewBatchRows ¶
func (*DynDB) NewGroup ¶
func (d *DynDB) NewGroup(tenantId string, model *xbprint.NewTableGroup) error
func (*DynDB) QueryActivity ¶
func (d *DynDB) QueryActivity(tenantId, group, table string, query *entities.ActivityQuery) ([]*entities.DynActivity, error)
func (*DynDB) RefLoad ¶
func (d *DynDB) RefLoad(txid uint32, tenantId, gslug string, req *dyndb.RefLoadReq) (*dyndb.QueryResult, error)
func (*DynDB) RefResolve ¶
func (d *DynDB) RefResolve(txid uint32, tenantId, gslug string, req *dyndb.RefResolveReq) (*dyndb.QueryResult, error)
func (*DynDB) RemoveFKRef ¶
func (*DynDB) RemoveIndex ¶
func (*DynDB) ReverseRefLoad ¶
func (d *DynDB) ReverseRefLoad(txid uint32, tenantId, gslug string, req *dyndb.RevRefLoadReq) (*dyndb.QueryResult, error)
func (*DynDB) SimpleQuery ¶
func (d *DynDB) SimpleQuery(txid uint32, req dyndb.SimpleQueryReq) (*dyndb.QueryResult, error)
func (*DynDB) SqlQueryRaw ¶
func (*DynDB) SqlQueryScopped ¶
func (*DynDB) TemplateQuery ¶
func (d *DynDB) TemplateQuery(txid uint32, req dyndb.TemplateQueryReq) (*dyndb.QueryResult, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.