package
0.0.0-20220513171635-3c7f7e5af3e7
Repository: https://github.com/kmulvey/trashmap.git
Documentation: pkg.go.dev

# Functions

DBConnect connects to postgres and returns the handle.
DeleteArea removes the user's pickup area from the areas table.
No description provided by the author
GetAreaID returns the id of an area given userID and the area.
GetPickupAreasWithinArea takes an area as a set of GPS points and returns all the trash pickup areas within it.
No description provided by the author
InsertArea adds the user's pickup area to the areas table and returns new ID.
we cannot use rs.LastInsertId() because its not supported by pq https://github.com/lib/pq/issues/24.
No description provided by the author