Documentation ¶
Index ¶
- func GetConnection(data *ConnectionData) (*gorm.DB, error)
- type ConnectionData
- func (cd *ConnectionData) SetupBetaConnectionData(username, password, host, schema, url string) *ConnectionData
- func (cd *ConnectionData) SetupLocalConnectionData(username, password, host, schema, url string) *ConnectionData
- func (cd *ConnectionData) SetupProdConnectionData() *ConnectionData
- func (cd *ConnectionData) SetupTestConnectionData() *ConnectionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
func GetConnection(data *ConnectionData) (*gorm.DB, error)
Types ¶
type ConnectionData ¶
type ConnectionData struct { Host string Schema string Username string Password string Dialect string Url string }
func (*ConnectionData) SetupBetaConnectionData ¶
func (cd *ConnectionData) SetupBetaConnectionData(username, password, host, schema, url string) *ConnectionData
func (*ConnectionData) SetupLocalConnectionData ¶
func (cd *ConnectionData) SetupLocalConnectionData(username, password, host, schema, url string) *ConnectionData
func (*ConnectionData) SetupProdConnectionData ¶
func (cd *ConnectionData) SetupProdConnectionData() *ConnectionData
func (*ConnectionData) SetupTestConnectionData ¶
func (cd *ConnectionData) SetupTestConnectionData() *ConnectionData
Click to show internal directories.
Click to hide internal directories.