Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideDatabase ¶
func ProvideDatabase() interface{}
ProvideDatabase provides a database type instance
Types ¶
type DBSetupOut ¶
type DBSetupOut struct { dig.Out // atomic repository to run transactional queries repository.AtomicRepository repository.WeatherHistoryRepository }
type DatabaseConnection ¶
type DatabaseConnection struct {
// contains filtered or unexported fields
}
DatabaseConnection is the database type
func (*DatabaseConnection) AutoMigrate ¶
func (dc *DatabaseConnection) AutoMigrate() error
func (*DatabaseConnection) Init ¶
func (dc *DatabaseConnection) Init() error
Init initializes a database connection based on provided config
Click to show internal directories.
Click to hide internal directories.