persistence

package
v0.0.0-...-1bd3253 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 11 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL