[Task]: Setup database interaction module #3

Closed
opened 2024-01-09 20:11:30 +00:00 by cptlobster · 1 comment
Member

Task description

setup a module that can interact with a database (Postgres likely, might need to retool for other DBs if necessary.

Functionality

  • Connect to a database and execute SQL queries
  • Setup Python interface (maybe as a class?) with following functionality
    • Initialize a fresh database
    • Read all rows from a database that match specific parameters
    • Write new rows to a database
  • Make it incredibly fault tolerant
    • If a column does not exist, add it and continue
    • If empty results, just return that and move on
    • If database error, return an empty set and move on

Assign to Project

  • I have assigned to the project
### Task description setup a module that can interact with a database (Postgres likely, might need to retool for other DBs if necessary. ### Functionality - [x] Connect to a database and execute SQL queries - [ ] Setup Python interface (maybe as a class?) with following functionality - [ ] Initialize a fresh database - [ ] Read all rows from a database that match specific parameters - [x] Write new rows to a database - [ ] Make it incredibly fault tolerant - [x] If a column does not exist, add it and continue - [ ] If empty results, just return that and move on - [x] If database error, return an empty set and move on ### Assign to Project - [x] I have assigned to the project
cptlobster self-assigned this 2024-01-09 20:11:30 +00:00
cptlobster added this to the Jukebox project 2024-01-09 20:11:30 +00:00
cptlobster added the
Kind/Feature
Priority
High
labels 2024-01-09 20:12:17 +00:00
cptlobster added reference dthomas-db 2024-01-09 20:39:38 +00:00
Author
Member

so far the internal functionality for executing SQL queries is implemented. I don't have error handling fully implemented yet so it just returns an empty list for now and print the error.

Also got read mostly implemented, I haven't added functionality to deal with new rows yet.

so far the internal functionality for executing SQL queries is implemented. I don't have error handling fully implemented yet so it just returns an empty list for now and print the error. Also got read *mostly* implemented, I haven't added functionality to deal with new rows yet.
Sign in to join this conversation.
No description provided.