Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + func DataModelPOToDataModelDO(ctx context.Context, model *DataModel) *datamodel.DataModel + func DataModelPOToDataModelDTO(ctx context.Context, d *DataModel, count int64) *query.DataModel + func EntityGridPOToEntityGridDTO(ctx context.Context, e *EntityGrid) string + func EntityGridPOToRowIDDTO(ctx context.Context, e *EntityGrid) string + func EntityGridsPOToColumnDTO(ctx context.Context, e []*EntityGrid, rowIDs []string) []string + func EntityGridsPOToRowIDsDTO(ctx context.Context, e []*EntityGrid) []string + func EntityHeadersPOToHeadersDTO(ctx context.Context, h *EntityHeader) string + func EntitySetRowPOToEntitySetRowDTO(ctx context.Context, e *EntitySetRow, m map[string][]string) map[string][]string + func EntitySetRowPOToRowIDDTO(ctx context.Context, e *EntitySetRow) string + func EntitySetRowsPOToEntitySetRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string + func EntitySetRowsPOToEntitySetRowsDTO(ctx context.Context, e []*EntitySetRow, rowIDs []string) [][]string + func EntitySetRowsPOToRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string + func NewDataModelReadModel(ctx context.Context, db *gorm.DB) (query.DataModelReadModel, error) + func NewDataModelRepository(ctx context.Context, db *gorm.DB) (datamodel.Repository, error) + func WorkspaceRowPOToRowIDDTO(ctx context.Context, w *WorkspaceRow) string + func WorkspaceRowPOToWorkspaceRowDTO(ctx context.Context, e *WorkspaceRow) []string + func WorkspaceRowsPOToRowIDsDTO(ctx context.Context, e []*WorkspaceRow) []string + func WorkspaceRowsPOToWorkspaceRowsDTO(ctx context.Context, e []*WorkspaceRow) [][]string + type DataModel struct + CreatedAt time.Time + ID string + Name string + Type string + UpdatedAt time.Time + WorkspaceID string + func DataModelDOtoDataModelPO(ctx context.Context, model *datamodel.DataModel) *DataModel + func (d *DataModel) TableName() string + type EntityGrid struct + ColumnIndex int + DataModelID string + RowID string + Value string + func DataModelDOtoEntityGridsPO(ctx context.Context, model *datamodel.DataModel) []*EntityGrid + func (d *EntityGrid) TableName() string + type EntityHeader struct + ColumnIndex int + DataModelID string + Name string + Type string + func DataModelDOtoEntityHeadersPO(ctx context.Context, model *datamodel.DataModel) []*EntityHeader + func (d *EntityHeader) TableName() string + type EntitySetRow struct + DataModelID string + ID uint + RefRowID string + RowID string + func DataModelDOtoEntitySetRowsPO(ctx context.Context, model *datamodel.DataModel) ([]*EntitySetRow, error) + func (d *EntitySetRow) TableName() string + type WorkspaceRow struct + DataModelID string + Key string + Type string + Value string + func DataModelDOtoWorkspaceRowsPO(ctx context.Context, model *datamodel.DataModel) []*WorkspaceRow + func (d *WorkspaceRow) TableName() string