Documentation
¶
Index ¶
- type Config
- type Database
- func (db Database) DSN() string
- func (db Database) DSNDefaultDBName() stringdeprecated
- func (db Database) DSNWithoutSchema() string
- func (db Database) GetPort() uint32
- func (db Database) QuotedName() string
- func (d Database) WithDBName(dbName string) Database
- func (d Database) WithSchema(schema string) Database
- type TBLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
Name string
Schema string
Username string
Password string
Host string
Port string
}
func (Database) DSNDefaultDBName
deprecated
func (Database) DSNWithoutSchema ¶ added in v0.3.0
func (Database) QuotedName ¶
func (Database) WithDBName ¶
func (Database) WithSchema ¶
type TBLS ¶
type TBLS struct {
DBName string `env:"TBLS_DATABASE_NAME"`
DBPort string `env:"TBLS_DATABASE_PORT,default=5432"`
Schema string `env:"TBLS_DATABASE_SCHEMA"`
MigrationDir string `env:"TBLS_MIGRATION_DIR"`
CfgFile string `env:"TBLS_CONFIG_FILE,default=.tbls.yml"`
}
func (TBLS) GetConfigFiles ¶ added in v0.3.0
func (TBLS) GetMigrationDirs ¶ added in v0.3.0
func (TBLS) GetSchemas ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.
