Documentation ¶
Index ¶
- func Configuration(s *Settings) *typgo.Configuration
- func Connect(cfg *Config) (db *sql.DB, err error)
- func Disconnect(db *sql.DB) (err error)
- func DockerRecipeV3(s *Settings) *typdocker.Recipe
- func GetConfigName(s *Settings) string
- func GetDBName(s *Settings) string
- func GetDockerImage(s *Settings) string
- func GetDockerName(s *Settings) string
- func GetHost(s *Settings) string
- func GetMigrationSrc(s *Settings) string
- func GetPassword(s *Settings) string
- func GetPort(s *Settings) int
- func GetSeedSrc(s *Settings) string
- func GetUser(s *Settings) string
- func Utility(s *Settings) typgo.Utility
- type Config
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configuration ¶ added in v0.8.25
func Configuration(s *Settings) *typgo.Configuration
Configuration of postgres
func Disconnect ¶ added in v0.8.25
Disconnect from postgres server
func DockerRecipeV3 ¶ added in v0.8.25
DockerRecipeV3 of postgres
func GetConfigName ¶ added in v0.8.28
GetConfigName from setting
func GetDockerImage ¶ added in v0.8.28
GetDockerImage from setting
func GetDockerName ¶ added in v0.8.28
GetDockerName from setting
func GetMigrationSrc ¶ added in v0.8.28
GetMigrationSrc from setting if available or the default value
func GetSeedSrc ¶ added in v0.8.28
GetSeedSrc from setting if available or the default value
Types ¶
Click to show internal directories.
Click to hide internal directories.