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
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Task description
setup a module that can interact with a database (Postgres likely, might need to retool for other DBs if necessary.
Functionality
Assign to Project
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.