Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMarker ¶
type BlockMarker struct { Start string `json:"start" yaml:"start"` End string `json:"end" yaml:"end"` }
func (BlockMarker) GetEnd ¶
func (e BlockMarker) GetEnd() string
func (BlockMarker) GetStart ¶
func (e BlockMarker) GetStart() string
type Column ¶
type Column struct { Name string `json:"name" yaml:"name"` Ordinal int `json:"ordinal" yaml:"ordinal"` Type string `json:"type" yaml:"type"` IsNullable bool `json:"isNullable" yaml:"isNullable"` DefaultValue *string `json:"defaultValue" yaml:"defaultValue"` IsPrimaryKey bool `json:"isPrimaryKey" yaml:"isPrimaryKey"` Comment *string `json:"comment" yaml:"comment"` }
type Config ¶
type Config struct { Templates string `json:"templates" yaml:"templates"` // Can be a directory or URL OutputMarker string `json:"outputMarker" yaml:"outputMarker"` BlockMarker BlockMarker `json:"blockMarker" yaml:"blockMarker"` Databases []*DatabaseConfig `json:"databases" yaml:"databases"` Properties map[string]string `json:"properties" yaml:"properties"` }
func (Config) GetOutputMarker ¶
func (Config) GetTemplates ¶
type DatabaseConfig ¶
type GlobalOptions ¶
type GlobalOptions struct {
Config string `json:"config" yaml:"config"` // Where to read gencoder.yaml
}
type Index ¶
type Index struct { Name string `json:"name" yaml:"name"` IsUnique bool `json:"isUnique" yaml:"isUnique"` IsPrimary bool `json:"isPrimary" yaml:"isPrimary"` Columns []*IndexColumn `json:"columns" yaml:"columns"` }
type IndexColumn ¶
type RenderContext ¶
type RenderContext struct { Table *Table `json:"table" yaml:"table"` Properties map[string]string `json:"properties" yaml:"properties"` // Merged properties Config *Config `json:"config" yaml:"config"` DatabaseConfig *DatabaseConfig `json:"databaseConfig" yaml:"databaseConfig"` TableConfig *TableConfig `json:"tableConfig" yaml:"tableConfig"` }
type TableConfig ¶
Click to show internal directories.
Click to hide internal directories.