database layer for my personal server.
Project description
lapa_database_structure
about
database structure layer for my personal server.
installation
pip install lapa_database_structure
usage
to add a new database
- create a package with package name as database name.
to add a new schema
- add package in database_name package with schema name as package name.
to add a new table
- create /database_name/schema_name/tables.py file if not already created.
- create class corresponding to your new table add in /database_name/schema_name/tables.py file.
to add default data in table
- append row objects containing your default data to the data_to_insert list inside the /database_name/schema_name/tables.py file.
do not forget to add new database_names, schema_names and/or table_names to main.py enums to make it accessible through api calls.
configs
None
env
- python>=3.12.0
changelog
v0.0.3
- Changed package name to lapa_database_structure.
v0.0.2
- Update table for file_storage -> File.
v0.0.1
- initial implementation.
Feedback is appreciated. Thank you!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lapa_database_structure-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f81fc3948568937e99bcb66b7e0d93ddf2ae0055348cacede6a983c8f40241e |
|
MD5 | f8f5744f18a64f56399a876ae7c783ef |
|
BLAKE2b-256 | c8762cf770ba6fc0b5066dfe4ce4c368463b111f341c7876526f08b3f26ca3f8 |
Close
Hashes for lapa_database_structure-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc846e611df10497be6c5fb358e8554c9c5fdd9799951bccd5e908c460750fa |
|
MD5 | df467058e98f9de45c17fe76c8587e31 |
|
BLAKE2b-256 | 09afc1b1156b3ebb2896527c71d8afbd8ebfa35164a940b6e54ee1734634c7b4 |