Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFromV2ConfigWithCatalog ¶
func GenerateFromV2ConfigWithCatalog( l logger.Logger, configDir string, schema *config.SchemaConfig, cat *catalog.Catalog, ) error
GenerateFromV2ConfigWithCatalog generates Go constants using a pre-parsed catalog.
func RenderConstants ¶
func RenderConstants(p ConstantsParams, w io.Writer) error
Types ¶
type ConstantsParams ¶
type ConstantsParams struct {
Package string
Tables []ConstantsTableNamesParamsItem
ColumnNames []ConstantsColumnNamesParamsItem
}
func (ConstantsParams) GetColumnNamesContent ¶
func (p ConstantsParams) GetColumnNamesContent() string
func (ConstantsParams) GetColumnsForTable ¶
func (p ConstantsParams) GetColumnsForTable(tableName string) []ConstantsColumnNamesParamsItem
func (ConstantsParams) GetHeaderComment ¶
func (p ConstantsParams) GetHeaderComment() string
func (ConstantsParams) GetTablesContent ¶
func (p ConstantsParams) GetTablesContent() string
Click to show internal directories.
Click to hide internal directories.