database

package
v0.0.0-...-a9e353d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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 wrapper around the database to hide internal details.

func Connect

func Connect(config *configuration.Configuration) (*Database, error)

Connect initialises a database connection.

func (Database) Disconnect

func (db Database) Disconnect() error

Disconnect closes the connection.

func (Database) FindPlaceDetailsById

func (db Database) FindPlaceDetailsById(id string) (*google.GooglePlaceDetails, error)

FindPlaceDetailsById queries the database to find the given Google Place details.

func (Database) SavePlaceDetails

func (db Database) SavePlaceDetails(details *google.GooglePlaceDetails) error

SavePlaceDetails saves the given place details into the database.

Jump to

Keyboard shortcuts

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