Documentation ¶
Index ¶
- func GenerateDataModel(pclass cmdutils.ClassLabeler, outmap map[string]string, mod *sysl.Module, ...)
- func GenerateDataModels(datagenParams *cmdutils.CmdContextParamDatagen, model *sysl.Module, ...) (map[string]string, error)
- func GenerateDataModelsWithProjectMannerModule(datagenParams *cmdutils.CmdContextParamDatagen, model *sysl.Module, ...) (map[string]string, error)
- func GenerateDataModelsWithPureModule(datagenParams *cmdutils.CmdContextParamDatagen, model *sysl.Module, ...) (map[string]string, error)
- type DataArgs
- type DataModelParam
- type DataModelView
- func (v *DataModelView) DrawPrimitive(viewParam EntityViewParam, entity string, ...)
- func (v *DataModelView) DrawRelation(viewParam EntityViewParam, entity *sysl.Type_Relation, ...)
- func (v *DataModelView) DrawRelationship(relationshipMap map[string]map[string]RelationshipParam, viewType string)
- func (v *DataModelView) DrawTuple(viewParam EntityViewParam, entity *sysl.Type_Tuple, ...)
- func (v *DataModelView) GenerateDataView(dataParam *DataModelParam) string
- func (v *DataModelView) UniqueVarForAppName(nameParts ...string) string
- type EntityViewParam
- type RelationshipParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDataModel ¶
func GenerateDataModels ¶
func GenerateDataModelsWithPureModule ¶
func GenerateDataModelsWithPureModule(datagenParams *cmdutils.CmdContextParamDatagen, model *sysl.Module, logger *logrus.Logger) (map[string]string, error)
*
- It is added to help reviewing generated data model with sysl
- file produced by command import. Generate data model diagrams using the following command:
- sysl data -d --root=/Users/guest/data -t Test -o Test.png Test
- sysl datamodel -d --root=/Users/guest/data -t Test -o Test.png Test.sysl
Types ¶
type DataModelParam ¶
type DataModelParam struct { cmdutils.ClassLabeler Mod *sysl.Module App *sysl.Application Project string Title string Epname bool // If %(epname) is specified }
type DataModelView ¶
type DataModelView struct { cmdutils.ClassLabeler Mod *sysl.Module StringBuilder *strings.Builder Symbols map[string]*cmdutils.Var Project string Title string }
func MakeDataModelView ¶
func MakeDataModelView( p cmdutils.ClassLabeler, mod *sysl.Module, stringBuilder *strings.Builder, title, project string, ) *DataModelView
func (*DataModelView) DrawPrimitive ¶
func (v *DataModelView) DrawPrimitive( viewParam EntityViewParam, entity string, relationshipMap map[string]map[string]RelationshipParam, )
func (*DataModelView) DrawRelation ¶
func (v *DataModelView) DrawRelation( viewParam EntityViewParam, entity *sysl.Type_Relation, relationshipMap map[string]map[string]RelationshipParam, )
func (*DataModelView) DrawRelationship ¶
func (v *DataModelView) DrawRelationship(relationshipMap map[string]map[string]RelationshipParam, viewType string)
func (*DataModelView) DrawTuple ¶
func (v *DataModelView) DrawTuple( viewParam EntityViewParam, entity *sysl.Type_Tuple, relationshipMap map[string]map[string]RelationshipParam, )
nolint: funlen
func (*DataModelView) GenerateDataView ¶
func (v *DataModelView) GenerateDataView(dataParam *DataModelParam) string
func (*DataModelView) UniqueVarForAppName ¶
func (v *DataModelView) UniqueVarForAppName(nameParts ...string) string
type EntityViewParam ¶
type RelationshipParam ¶
Click to show internal directories.
Click to hide internal directories.