Documentation ¶
Index ¶
- type DataHub
- func (d *DataHub) ApplyTargetHook(tenantId string, id int64, data *entities.TargetHook)
- func (d *DataHub) GetDataSheetHub(tenantId, group string) dyndb.DataSheetHub
- func (d *DataHub) GetDataTableHub(tenantId, group string) dyndb.DataTableHub
- func (d *DataHub) GetDynDB() dyndb.DynDB
- func (d *DataHub) Inject(_app xtypes.App)
- type DataSource
- func (ds *DataSource) DelView(tenantId, gslug, tslug string, id int64) error
- func (ds *DataSource) DeleteColumn(tenantId, gslug, tslug, cslug string) error
- func (ds *DataSource) DeleteGroup(tenantId, gslug string) error
- func (ds *DataSource) DeleteTable(tenantId, gslug, tslug string) error
- func (ds *DataSource) EditColumn(tenantId, gslug, tslug, cslug string, model *entities.ColumnPartial) error
- func (ds *DataSource) EditGroup(tenantId, gslug string, model *entities.TableGroupPartial) error
- func (ds *DataSource) EditTable(tenantId, gslug, tslug string, model *entities.TablePartial) error
- func (ds *DataSource) GetColumn(tenantId, gslug, tslug, cslug string) (*entities.Column, error)
- func (ds *DataSource) GetDataSheetHub(tenantId, group string) dyndb.DataSheetHub
- func (ds *DataSource) GetDataTableHub(tenantId, group string) dyndb.DataTableHub
- func (ds *DataSource) GetGroup(tenantId, gslug string) (*entities.TableGroup, error)
- func (ds *DataSource) GetTable(tenantId, gslug, tslug string) (*entities.Table, error)
- func (ds *DataSource) GetView(tenantId, gslug, tslug string, id int64) (*entities.DataView, error)
- func (ds *DataSource) ListActivity(tenantId, group, table string, rowId int) ([]*entities.DynActivity, error)
- func (ds *DataSource) ListActivityByAlt(tenantId, group, table string, alt string) ([]*entities.DynActivity, error)
- func (ds *DataSource) ListColumns(tenantId, gslug, tslug string) ([]*entities.Column, error)
- func (ds *DataSource) ListDataUsers(source, tenantId, group, ttype, target string) ([]entities.UserInfo, error)
- func (ds *DataSource) ListGroup(tenantId string, cond map[string]any) ([]*entities.TableGroup, error)
- func (ds *DataSource) ListReverseColumnRef(tenantId, gslug, tslug string) ([]*entities.Column, error)
- func (ds *DataSource) ListTables(tenantId, gslug string) ([]*entities.Table, error)
- func (ds *DataSource) ListView(tenantId, gslug, tslug string) ([]*entities.DataView, error)
- func (ds *DataSource) MigrateSchema(tenantId string, opts step.MigrateOptions) error
- func (ds *DataSource) ModifyView(tenantId, gslug, tslug string, id int64, data map[string]any) error
- func (ds *DataSource) Name() string
- func (ds *DataSource) NewActivity(tenantId, group, table string, record *entities.DynActivity) error
- func (ds *DataSource) NewGroup(tenantId string, model *xbprint.NewTableGroup) error
- func (ds *DataSource) NewView(tenantId string, model *entities.DataView) error
- func (ds *DataSource) QueryActivity(tenantId, group, table string, query *entities.ActivityQuery) ([]*entities.DynActivity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataHub ¶
type DataHub struct {
// contains filtered or unexported fields
}
func (*DataHub) ApplyTargetHook ¶
func (d *DataHub) ApplyTargetHook(tenantId string, id int64, data *entities.TargetHook)
func (*DataHub) GetDataSheetHub ¶
func (d *DataHub) GetDataSheetHub(tenantId, group string) dyndb.DataSheetHub
func (*DataHub) GetDataTableHub ¶
func (d *DataHub) GetDataTableHub(tenantId, group string) dyndb.DataTableHub
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
func (*DataSource) DelView ¶
func (ds *DataSource) DelView(tenantId, gslug, tslug string, id int64) error
func (*DataSource) DeleteColumn ¶
func (ds *DataSource) DeleteColumn(tenantId, gslug, tslug, cslug string) error
func (*DataSource) DeleteGroup ¶
func (ds *DataSource) DeleteGroup(tenantId, gslug string) error
func (*DataSource) DeleteTable ¶
func (ds *DataSource) DeleteTable(tenantId, gslug, tslug string) error
func (*DataSource) EditColumn ¶
func (ds *DataSource) EditColumn(tenantId, gslug, tslug, cslug string, model *entities.ColumnPartial) error
func (*DataSource) EditGroup ¶
func (ds *DataSource) EditGroup(tenantId, gslug string, model *entities.TableGroupPartial) error
func (*DataSource) EditTable ¶
func (ds *DataSource) EditTable(tenantId, gslug, tslug string, model *entities.TablePartial) error
func (*DataSource) GetColumn ¶
func (ds *DataSource) GetColumn(tenantId, gslug, tslug, cslug string) (*entities.Column, error)
func (*DataSource) GetDataSheetHub ¶
func (ds *DataSource) GetDataSheetHub(tenantId, group string) dyndb.DataSheetHub
func (*DataSource) GetDataTableHub ¶
func (ds *DataSource) GetDataTableHub(tenantId, group string) dyndb.DataTableHub
func (*DataSource) GetGroup ¶
func (ds *DataSource) GetGroup(tenantId, gslug string) (*entities.TableGroup, error)
func (*DataSource) GetTable ¶
func (ds *DataSource) GetTable(tenantId, gslug, tslug string) (*entities.Table, error)
func (*DataSource) ListActivity ¶
func (ds *DataSource) ListActivity(tenantId, group, table string, rowId int) ([]*entities.DynActivity, error)
func (*DataSource) ListActivityByAlt ¶
func (ds *DataSource) ListActivityByAlt(tenantId, group, table string, alt string) ([]*entities.DynActivity, error)
func (*DataSource) ListColumns ¶
func (ds *DataSource) ListColumns(tenantId, gslug, tslug string) ([]*entities.Column, error)
func (*DataSource) ListDataUsers ¶
func (ds *DataSource) ListDataUsers(source, tenantId, group, ttype, target string) ([]entities.UserInfo, error)
func (*DataSource) ListGroup ¶
func (ds *DataSource) ListGroup(tenantId string, cond map[string]any) ([]*entities.TableGroup, error)
func (*DataSource) ListReverseColumnRef ¶
func (ds *DataSource) ListReverseColumnRef(tenantId, gslug, tslug string) ([]*entities.Column, error)
func (*DataSource) ListTables ¶
func (ds *DataSource) ListTables(tenantId, gslug string) ([]*entities.Table, error)
func (*DataSource) ListView ¶
func (ds *DataSource) ListView(tenantId, gslug, tslug string) ([]*entities.DataView, error)
func (*DataSource) MigrateSchema ¶
func (ds *DataSource) MigrateSchema(tenantId string, opts step.MigrateOptions) error
func (*DataSource) ModifyView ¶
func (*DataSource) Name ¶
func (ds *DataSource) Name() string
func (*DataSource) NewActivity ¶
func (ds *DataSource) NewActivity(tenantId, group, table string, record *entities.DynActivity) error
func (*DataSource) NewGroup ¶
func (ds *DataSource) NewGroup(tenantId string, model *xbprint.NewTableGroup) error
func (*DataSource) NewView ¶
func (ds *DataSource) NewView(tenantId string, model *entities.DataView) error
func (*DataSource) QueryActivity ¶
func (ds *DataSource) QueryActivity(tenantId, group, table string, query *entities.ActivityQuery) ([]*entities.DynActivity, error)
Click to show internal directories.
Click to hide internal directories.