datahub

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: 13 Imported by: 0

Documentation

Index

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 New

func New(dyn dyndb.DynDB) *DataHub

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

func (*DataHub) GetDynDB

func (d *DataHub) GetDynDB() dyndb.DynDB

func (*DataHub) Inject

func (d *DataHub) Inject(_app xtypes.App)

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

func (ds *DataSource) GetView(tenantId, gslug, tslug string, id int64) (*entities.DataView, 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 (ds *DataSource) ModifyView(tenantId, gslug, tslug string, id int64, data map[string]any) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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