Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aavato-c/sb
SB: a simple sqlite database skeleton.
https://github.com/aavato-c/sb
Last synced: 21 days ago
JSON representation
SB: a simple sqlite database skeleton.
- Host: GitHub
- URL: https://github.com/aavato-c/sb
- Owner: Aavato-c
- License: mit
- Created: 2024-09-03T15:48:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-20T20:46:53.000Z (about 1 month ago)
- Last Synced: 2024-11-20T21:37:14.927Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Just an sqlite starter for my other work.
### What is it?
- contains scripts to initialize and use an sqlite database with pydantic models.**What tables or data does it initialize the db with?**
- the database has two tables and corresponding db schemas for them in models.py
- the pydantic models are located in pydantic_models.py
- the database conn object is retrieved from database.py using get_db(), a function that automatically terminates the connection after use**CRUD**
- Some basic crud-operation abstractions are located in crud.py
- The functions also have some callables prefixed with "agnostic". These are some sure to break MacGyver-functions I take no responsibility for. I hope they work.