Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigSet = wire.NewSet(NewConfigImpl, wire.Bind(new(Config), new(*ConfigImpl)))
Functions ¶
Types ¶
type Config ¶ added in v1.12.0
type Config interface { Reads() []databasecontract.Config Writes() []databasecontract.Config }
type ConfigImpl ¶ added in v1.12.0
type ConfigImpl struct {
// contains filtered or unexported fields
}
func NewConfigImpl ¶ added in v1.12.0
func NewConfigImpl(config config.Config, connection string) *ConfigImpl
func (*ConfigImpl) Reads ¶ added in v1.12.0
func (c *ConfigImpl) Reads() []databasecontract.Config
func (*ConfigImpl) Writes ¶ added in v1.12.0
func (c *ConfigImpl) Writes() []databasecontract.Config
type Dsn ¶ added in v1.12.0
type Dsn interface { Mysql(config databasecontract.Config) string Postgresql(config databasecontract.Config) string Sqlite(config databasecontract.Config) string Sqlserver(config databasecontract.Config) string }
type DsnImpl ¶ added in v1.12.0
type DsnImpl struct {
// contains filtered or unexported fields
}
func NewDsnImpl ¶ added in v1.12.0
func (*DsnImpl) Mysql ¶ added in v1.12.0
func (d *DsnImpl) Mysql(config databasecontract.Config) string
func (*DsnImpl) Postgresql ¶ added in v1.12.0
func (d *DsnImpl) Postgresql(config databasecontract.Config) string
Click to show internal directories.
Click to hide internal directories.