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 ¶
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.
Click to show internal directories.
Click to hide internal directories.