Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + type DataModel struct + ID string + Name string + RowCount int64 + Type string + WorkspaceID string + type DataModelReadModel interface + CountDataModel func(ctx context.Context, workspaceID string, filter *ListDataModelsFilter) (int64, error) + CountDataModelRows func(ctx context.Context, id, _type string, filter *ListDataModelRowsFilter) (int64, error) + GetDataModelName func(ctx context.Context, workspaceID, id string) (string, error) + GetDataModelWithID func(ctx context.Context, id string) (*DataModel, error) + GetDataModelWithName func(ctx context.Context, workspaceID, name string) (*DataModel, error) + ListAllDataModelRowIDs func(ctx context.Context, id, _type string) ([]string, error) + ListDataModelHeaders func(ctx context.Context, id, name, _type string) ([]string, error) + ListDataModelRows func(ctx context.Context, id, _type string, pagination *utils.Pagination, ...) ([][]string, int64, error) + ListDataModels func(ctx context.Context, workspaceID string, filter *ListDataModelsFilter) ([]*DataModel, error) + ListEntityDataModelColumnsWithRowIDs func(ctx context.Context, id string, headers []string, rowIDs []string) (map[string][]string, error) + ListEntityDataModelHeaders func(ctx context.Context, id string) ([]string, error) + type GetDataModelHandler interface + Handle func(ctx context.Context, query *GetDataModelQuery) (*DataModel, []string, error) + func NewGetDataModelHandler(workspaceReadModel workspacequery.WorkspaceReadModel, ...) GetDataModelHandler + type GetDataModelQuery struct + ID string + WorkspaceID string + type ListAllDataModelRowIDsHandler interface + Handle func(ctx context.Context, query *ListAllDataModelRowIDsQuery) ([]string, error) + func NewListAllDataModelRowIDsHandler(workspaceReadModel workspacequery.WorkspaceReadModel, ...) ListAllDataModelRowIDsHandler + type ListAllDataModelRowIDsQuery struct + ID string + WorkspaceID string + type ListDataModelRowsFilter struct + InSetIDs []string + RowIDs []string + SearchWord string + type ListDataModelRowsHandler interface + Handle func(ctx context.Context, query *ListDataModelRowsQuery) ([]string, [][]string, int64, error) + func NewListDataModelRowsHandler(workspaceReadModel workspacequery.WorkspaceReadModel, ...) ListDataModelRowsHandler + type ListDataModelRowsQuery struct + Filter *ListDataModelRowsFilter + ID string + Pagination *utils.Pagination + WorkspaceID string + type ListDataModelsFilter struct + Exact bool + IDs []string + SearchWord string + Types []string + type ListDataModelsHandler interface + Handle func(ctx context.Context, query *ListDataModelsQuery) ([]*DataModel, error) + func NewListDataModelsHandler(workspaceReadModel workspacequery.WorkspaceReadModel, ...) ListDataModelsHandler + type ListDataModelsQuery struct + Filter *ListDataModelsFilter + WorkspaceID string + type Queries struct + GetDataModel GetDataModelHandler + ListAllDataModelRowIDs ListAllDataModelRowIDsHandler + ListDataModelRows ListDataModelRowsHandler + ListDataModels ListDataModelsHandler + func NewQueries(workspaceReadModel workspacequery.WorkspaceReadModel, ...) *Queries