sql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataModelPOToDataModelDO

func DataModelPOToDataModelDO(ctx context.Context, model *DataModel) *datamodel.DataModel

func DataModelPOToDataModelDTO

func DataModelPOToDataModelDTO(ctx context.Context, d *DataModel, count int64) *query.DataModel

func EntityGridPOToEntityGridDTO

func EntityGridPOToEntityGridDTO(ctx context.Context, e *EntityGrid) string

func EntityGridPOToRowIDDTO

func EntityGridPOToRowIDDTO(ctx context.Context, e *EntityGrid) string

func EntityGridsPOToColumnDTO

func EntityGridsPOToColumnDTO(ctx context.Context, e []*EntityGrid, rowIDs []string) []string

func EntityGridsPOToRowIDsDTO

func EntityGridsPOToRowIDsDTO(ctx context.Context, e []*EntityGrid) []string

func EntityHeadersPOToHeadersDTO

func EntityHeadersPOToHeadersDTO(ctx context.Context, h *EntityHeader) string

func EntitySetRowPOToEntitySetRowDTO

func EntitySetRowPOToEntitySetRowDTO(ctx context.Context, e *EntitySetRow, m map[string][]string) map[string][]string

func EntitySetRowPOToRowIDDTO

func EntitySetRowPOToRowIDDTO(ctx context.Context, e *EntitySetRow) string

func EntitySetRowsPOToEntitySetRowIDsDTO

func EntitySetRowsPOToEntitySetRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string

func EntitySetRowsPOToEntitySetRowsDTO

func EntitySetRowsPOToEntitySetRowsDTO(ctx context.Context, e []*EntitySetRow, rowIDs []string) [][]string

func EntitySetRowsPOToRowIDsDTO

func EntitySetRowsPOToRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string

func NewDataModelReadModel

func NewDataModelReadModel(ctx context.Context, db *gorm.DB) (query.DataModelReadModel, error)

NewDataModelReadModel ...

func NewDataModelRepository

func NewDataModelRepository(ctx context.Context, db *gorm.DB) (datamodel.Repository, error)

NewDataModelRepository ...

func WorkspaceRowPOToRowIDDTO

func WorkspaceRowPOToRowIDDTO(ctx context.Context, w *WorkspaceRow) string

func WorkspaceRowPOToWorkspaceRowDTO

func WorkspaceRowPOToWorkspaceRowDTO(ctx context.Context, e *WorkspaceRow) []string

func WorkspaceRowsPOToRowIDsDTO

func WorkspaceRowsPOToRowIDsDTO(ctx context.Context, e []*WorkspaceRow) []string

func WorkspaceRowsPOToWorkspaceRowsDTO

func WorkspaceRowsPOToWorkspaceRowsDTO(ctx context.Context, e []*WorkspaceRow) [][]string

Types

type DataModel

type DataModel struct {
	ID          string
	WorkspaceID string `gorm:"type:varchar(32);not null;uniqueIndex:data_ws"`
	Name        string `gorm:"type:varchar(50) CHARACTER SET gbk COLLATE gbk_bin;not null;uniqueIndex:data_ws"`
	Type        string `gorm:"type:varchar(32);not null"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func DataModelDOtoDataModelPO

func DataModelDOtoDataModelPO(ctx context.Context, model *datamodel.DataModel) *DataModel

func (*DataModel) TableName

func (d *DataModel) TableName() string

type EntityGrid

type EntityGrid struct {
	RowID       string `gorm:"primaryKey;type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"`
	ColumnIndex int    `gorm:"primaryKey;not null"`
	DataModelID string `gorm:"primaryKey;type:varchar(32);not null;index"`
	Value       string `gorm:"type:longtext CHARACTER SET gbk COLLATE gbk_bin;not null"`
}

func DataModelDOtoEntityGridsPO

func DataModelDOtoEntityGridsPO(ctx context.Context, model *datamodel.DataModel) []*EntityGrid

func (*EntityGrid) TableName

func (d *EntityGrid) TableName() string

type EntityHeader

type EntityHeader struct {
	ColumnIndex int    `gorm:"primaryKey;not null"`
	DataModelID string `gorm:"primaryKey;type:varchar(32);not null;index"`
	Name        string `gorm:"type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"`
	Type        string `gorm:"type:varchar(32);not null"`
}

func DataModelDOtoEntityHeadersPO

func DataModelDOtoEntityHeadersPO(ctx context.Context, model *datamodel.DataModel) []*EntityHeader

func (*EntityHeader) TableName

func (d *EntityHeader) TableName() string

type EntitySetRow

type EntitySetRow struct {
	ID          uint
	RowID       string `gorm:"type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"`
	DataModelID string `gorm:"type:varchar(32);not null;index"`
	RefRowID    string `gorm:"type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"`
}

func DataModelDOtoEntitySetRowsPO

func DataModelDOtoEntitySetRowsPO(ctx context.Context, model *datamodel.DataModel) ([]*EntitySetRow, error)

func (*EntitySetRow) TableName

func (d *EntitySetRow) TableName() string

type WorkspaceRow

type WorkspaceRow struct {
	Key         string `gorm:"primaryKey;type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"`
	DataModelID string `gorm:"primaryKey;type:varchar(32);not null;index"`
	Value       string `gorm:"type:longtext CHARACTER SET gbk COLLATE gbk_bin;not null"`
	Type        string `gorm:"type:varchar(32);not null"`
}

func DataModelDOtoWorkspaceRowsPO

func DataModelDOtoWorkspaceRowsPO(ctx context.Context, model *datamodel.DataModel) []*WorkspaceRow

func (*WorkspaceRow) TableName

func (d *WorkspaceRow) TableName() string

Jump to

Keyboard shortcuts

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