Documentation
¶
Index ¶
- type Config
- type DB
- type Postgres
- func (m *Postgres) Commands(c *typbuildtool.Context) []*cli.Command
- func (m *Postgres) Configure(loader typcfg.Loader) *typcfg.Detail
- func (m *Postgres) Destroy() []*typdep.Invocation
- func (m *Postgres) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
- func (m *Postgres) Prepare() []*typdep.Invocation
- func (m *Postgres) Provide() []*typdep.Constructor
- func (m *Postgres) WithDBName(dbname string) *Postgres
- func (m *Postgres) WithDockerImage(dockerImage string) *Postgres
- func (m *Postgres) WithDockerName(dockerName string) *Postgres
- func (m *Postgres) WithHost(host string) *Postgres
- func (m *Postgres) WithMigrationSource(migrationSource string) *Postgres
- func (m *Postgres) WithPassword(password string) *Postgres
- func (m *Postgres) WithPort(port int) *Postgres
- func (m *Postgres) WithSeedSource(seedSource string) *Postgres
- func (m *Postgres) WithUser(user string) *Postgres
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DBName string `required:"true"`
User string `required:"true" default:"postgres"`
Password string `required:"true" default:"pgpass"`
Host string `default:"localhost"`
Port int `default:"5432"`
}
Config is postgres configuration
type Postgres ¶ added in v0.8.20
type Postgres struct {
// contains filtered or unexported fields
}
Postgres of postgres
func (*Postgres) Commands ¶ added in v0.8.20
func (m *Postgres) Commands(c *typbuildtool.Context) []*cli.Command
Commands of module
func (*Postgres) Destroy ¶ added in v0.8.20
func (m *Postgres) Destroy() []*typdep.Invocation
Destroy dependencies
func (*Postgres) DockerCompose ¶ added in v0.8.20
func (m *Postgres) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
DockerCompose template
func (*Postgres) Prepare ¶ added in v0.8.20
func (m *Postgres) Prepare() []*typdep.Invocation
Prepare the module
func (*Postgres) Provide ¶ added in v0.8.20
func (m *Postgres) Provide() []*typdep.Constructor
Provide the dependencies
func (*Postgres) WithDBName ¶ added in v0.8.20
WithDBName to return module with new database name
func (*Postgres) WithDockerImage ¶ added in v0.8.20
WithDockerImage to return module with new docker image
func (*Postgres) WithDockerName ¶ added in v0.8.20
WithDockerName to return module with new docker name
func (*Postgres) WithMigrationSource ¶ added in v0.8.20
WithMigrationSource to return module with new migration source
func (*Postgres) WithPassword ¶ added in v0.8.20
WithPassword to return module with new password
func (*Postgres) WithSeedSource ¶ added in v0.8.20
WithSeedSource to return module with new migration source
Click to show internal directories.
Click to hide internal directories.