Documentation
¶
Index ¶
Constants ¶
View Source
const ( DBKindSqlite = "sqlite" DBKindPostgres = "postgres" DBKindMysql = "mysql" )
Supported database kinds
Variables ¶
View Source
var ( ErrUnsupportedDB = errors.New("Unsupported database") ErrMissingField = errors.New("Missing field") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
Database Database `yaml:"database"`
DataSources map[string]DataSource `yaml:"datasources"`
Contracts map[string]Contract `yaml:"contracts"`
Hasura Hasura `yaml:"hasura"`
}
Config
func LoadAndValidate ¶
LoadAndValidate - load config from `filename` and validate it
type Configurable ¶
Configurable -
type DataSource ¶
DataSource -
Click to show internal directories.
Click to hide internal directories.