config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tables map[string]TableConfig `yaml:"tables"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) GetTableNames

func (c *Config) GetTableNames() []string

type TableConfig

type TableConfig struct {
	Count             int                      `yaml:"count"`
	OrderBy           string                   `yaml:"order_by,omitempty"`
	PrimaryKeyColumns []string                 `yaml:"primary_key_columns,omitempty"`
	Columns           map[string]interface{}   `yaml:"columns,omitempty"`
	Rows              []map[string]interface{} `yaml:"rows,omitempty"`
}

func (*TableConfig) GetColumnNames

func (t *TableConfig) GetColumnNames() []string

Jump to

Keyboard shortcuts

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