Expand description
Utility functions for managing the PostgreSQL database.
Functionsยง
- bulk_
upsert_ ๐objects - Inserts all objects into the database, or updates them if they already exist.
- create_
schema - Sets up the tables of the database.
- get_gps
- Returns the closest 2 timestamps by their distance to the camera timestamp.
- insert_
image - Insert image file_path and timestamp into database (currently unused).
- smart_
update_ database - Updates the object table in the database with a dynamic object matching strategy.
- start_
postgres_ container - Starts a PostgreSQL container using Docker.
- start_
postgres_ embedded - Starts a PostgreSQL instance embedded in the application.