Documentation ¶
Overview ¶
Package config is the configuration definitions used by the simulator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnDefinition ¶
type ColumnDefinition struct { ColumnName string `yaml:"name"` DataType string `yaml:"type"` DataLen int `yaml:"length"` }
ColumnDefinition is the sub config for describing a column in a simulating table.
type TableConfig ¶
type TableConfig struct { TableID string `yaml:"id"` DatabaseName string `yaml:"db"` TableName string `yaml:"table"` Columns []*ColumnDefinition `yaml:"columns"` UniqueKeyColumnNames []string `yaml:"unique_keys"` }
TableConfig is the sub config for describing a simulating table in the data source.
func (*TableConfig) GenCreateTable ¶
func (t *TableConfig) GenCreateTable() string
Click to show internal directories.
Click to hide internal directories.