Documentation ¶
Index ¶
Constants ¶
View Source
const TEAL_VERSION = "v0.0.3"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ProjectPath string Version string `yaml:"version"` Module string `yaml:"module"` Connections []*DBConnectionConfig `yaml:"connections"` Cores int `yaml:"cores"` }
type ConfigService ¶
type ConfigService struct { }
func InitConfigService ¶
func InitConfigService() *ConfigService
func (*ConfigService) GetConfig ¶
func (configService *ConfigService) GetConfig(configFileName string, projectPath string) (*Config, error)
func (*ConfigService) GetProfile ¶
func (configService *ConfigService) GetProfile(projectPath string) (*Profile, error)
type DBConnectionConfig ¶
type DBConnectionConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Config struct { Host string `yaml:"host"` Port int `yaml:"port"` Database string `yaml:"database"` User string `yaml:"user"` Password int `yaml:"password"` Path string `yaml:"path"` Extensions []string `yaml:"extensions"` ExtraParams []struct { Name string `yaml:"name"` Value string `yaml:"value"` } `yaml:"extraParams"` } `yaml:"config"` }
type ModelProfile ¶
type Profile ¶
type Profile struct { Version string `yaml:"version"` Name string `yaml:"name"` Connection string `yaml:"connection"` Models struct { Stages []struct { Name string `yaml:"name"` Models []ModelProfile } `yaml:"stages"` } `yaml:"models"` Sources []SourceProfile `yaml:"sources"` }
func (Profile) GetModelProfile ¶
func (p Profile) GetModelProfile(stage string, name string) ModelProfile
Click to show internal directories.
Click to hide internal directories.