Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database represents a database connection and operations
func NewDatabase ¶
func NewDatabase(cfg config.DatabaseConfig) (*Database, error)
NewDatabase creates a new database connection
func (*Database) GetLatestWeatherData ¶
func (d *Database) GetLatestWeatherData() (*models.WeatherData, error)
GetLatestWeatherData retrieves the most recent weather data
func (*Database) GetWeatherDataRange ¶
GetWeatherDataRange retrieves weather data for a specific time range
func (*Database) SaveWeatherData ¶
func (d *Database) SaveWeatherData(data *models.WeatherData) error
SaveWeatherData saves weather data to the database
Click to show internal directories.
Click to hide internal directories.