dyndb

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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) AddColumn

func (d *DynDB) AddColumn(tenantId, gslug, tslug string, model *xbprint.NewColumn) error

func (*DynDB) AddColumnFRef

func (d *DynDB) AddColumnFRef(tenantId, gslug, tslug string, model *entities.ColumnFKRef) error

func (*DynDB) AddFTSIndex

func (d *DynDB) AddFTSIndex(tenantId, gslug, tslug string, model *entities.FTSIndex) error

func (*DynDB) AddIndex

func (d *DynDB) AddIndex(tenantId, gslug, tslug string, model *entities.Index) error

func (*DynDB) AddTable

func (d *DynDB) AddTable(tenantId, gslug string, model *xbprint.NewTable) error

func (*DynDB) AddUniqueIndex

func (d *DynDB) AddUniqueIndex(tenantId, gslug, tslug string, model *entities.Index) error

func (*DynDB) DelView

func (d *DynDB) DelView(tenantId, gslug, tslug string, id int64) error

func (*DynDB) DeleteColumn

func (d *DynDB) DeleteColumn(tenantId, gslug, tslug, cslug string) error

func (*DynDB) DeleteGroup

func (d *DynDB) DeleteGroup(tenantId, gslug string) error

func (*DynDB) DeleteRow

func (d *DynDB) DeleteRow(txid uint32, req dyndb.DeleteRowReq) error

func (*DynDB) DeleteRowBatch

func (d *DynDB) DeleteRowBatch(txid uint32, req dyndb.DeleteRowBatchReq) ([]int64, error)

func (*DynDB) DeleteRowMulti

func (d *DynDB) DeleteRowMulti(txid uint32, req dyndb.DeleteRowMultiReq) error

func (*DynDB) DeleteTable

func (d *DynDB) DeleteTable(tenantId, gslug, tslug string) error

func (*DynDB) EditColumn

func (d *DynDB) EditColumn(tenantId, gslug, tslug, cslug string, data *entities.ColumnPartial) error

func (*DynDB) EditGroup

func (d *DynDB) EditGroup(tenantId string, gslug string, model *entities.TableGroupPartial) 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) GetCache

func (d *DynDB) GetCache() dyndb.DCache

func (*DynDB) GetColumn

func (d *DynDB) GetColumn(tenantId, gslug, tslug, cslug string) (*entities.Column, error)

func (*DynDB) GetDriver

func (d *DynDB) GetDriver() any

func (*DynDB) GetGroup

func (d *DynDB) GetGroup(tenantId, gslug string) (*entities.TableGroup, error)

func (*DynDB) GetRow

func (d *DynDB) GetRow(txid uint32, req dyndb.GetRowReq) (map[string]interface{}, error)

func (*DynDB) GetTable

func (d *DynDB) GetTable(tenantId, gslug, tslug string) (*entities.Table, error)

func (*DynDB) GetView

func (d *DynDB) GetView(tenantId, gslug, tslug string, id int64) (*entities.DataView, error)

func (*DynDB) GroupExecute

func (d *DynDB) GroupExecute(tenantId, gslug, qstr string) error

func (*DynDB) JoinQuery

func (d *DynDB) JoinQuery(txid uint32, req dyndb.JoinReq) (*dyndb.JoinResult, error)

func (*DynDB) ListActivity

func (d *DynDB) ListActivity(tenantId, group, table string, rowId int) ([]*entities.DynActivity, error)

func (*DynDB) ListActivityByAlt

func (d *DynDB) ListActivityByAlt(tenantId, group, table string, alt string) ([]*entities.DynActivity, error)

func (*DynDB) ListColumnRef

func (d *DynDB) ListColumnRef(tenantId, gslug, tslug string) ([]*entities.ColumnFKRef, error)

func (*DynDB) ListColumns

func (d *DynDB) ListColumns(tenantId, gslug, tslug string) ([]*entities.Column, error)

func (*DynDB) ListFKRef

func (d *DynDB) ListFKRef(tenantId, gslug, tslug string) ([]*entities.Index, error)

func (*DynDB) ListGroup

func (d *DynDB) ListGroup(tenantId string, cond map[string]any) ([]*entities.TableGroup, error)

func (*DynDB) ListIndex

func (d *DynDB) ListIndex(tenantId, gslug, tslug string) ([]*entities.Index, error)

func (*DynDB) ListReverseColumnRef

func (d *DynDB) ListReverseColumnRef(tenantId, gslug, tslug string) ([]*entities.Column, error)

func (*DynDB) ListTables

func (d *DynDB) ListTables(tenantId, gslug string) ([]*entities.Table, error)

func (*DynDB) ListView

func (d *DynDB) ListView(tenantId, gslug, tslug string) ([]*entities.DataView, error)

func (*DynDB) MigrateSchema

func (d *DynDB) MigrateSchema(tenantId string, opts step.MigrateOptions) error

func (*DynDB) ModifyView

func (d *DynDB) ModifyView(tenantId, gslug, tslug string, id int64, data map[string]interface{}) error

func (*DynDB) MultiJoinQuery

func (d *DynDB) MultiJoinQuery(txid uint32, req dyndb.MultiJoinReq) (*dyndb.MultiJoinResult, error)

func (*DynDB) NewActivity

func (d *DynDB) NewActivity(tenantId, group, table string, record *entities.DynActivity) (int64, error)

func (*DynDB) NewBatchRows

func (d *DynDB) NewBatchRows(txid uint32, req dyndb.NewBatchRowReq) ([]int64, error)

func (*DynDB) NewGroup

func (d *DynDB) NewGroup(tenantId string, model *xbprint.NewTableGroup) error

func (*DynDB) NewRow

func (d *DynDB) NewRow(txid uint32, req dyndb.NewRowReq) (int64, error)

func (*DynDB) NewView

func (d *DynDB) NewView(tenantId string, model *entities.DataView) 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 (d *DynDB) RemoveFKRef(tenantId, gslug, tslug, refslug string) error

func (*DynDB) RemoveIndex

func (d *DynDB) RemoveIndex(tenantId, gslug, tslug, slug string) error

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 (d *DynDB) SqlQueryRaw(txid uint32, tenantId, group, qstr string) (any, error)

func (*DynDB) SqlQueryScopped

func (d *DynDB) SqlQueryScopped(txid uint32, tenantId, group, qstr string) (any, error)

func (*DynDB) TemplateQuery

func (d *DynDB) TemplateQuery(txid uint32, req dyndb.TemplateQueryReq) (*dyndb.QueryResult, error)

func (*DynDB) UpdateRow

func (d *DynDB) UpdateRow(txid uint32, req dyndb.UpdateRowReq) (map[string]interface{}, error)

type Key

type Key struct {
	ID int64 `db:"__id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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