database layer for my personal server.
Project description
square_database_structure
about
database structure layer for my personal server.
installation
pip install square_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.
env
- python>=3.12.0
changelog
v1.0.2
- replace file_purpose with app_id in file_storage.
v1.0.1
- add main.py file to have explicit mapping and ordering for schemas to be created.
- move database and schema names to init.
- add app table in public, change user, remove profile and add user app and remove enums.
v1.0.0
- initial commit
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 square_database_structure-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1db7708dbd77b85767dc62c2886c8ae3e180d8cedb6f1af8f0cb04d45752d4f |
|
MD5 | 4361281e17adca54f628c8fb190cd4d0 |
|
BLAKE2b-256 | 8253d96f54f892a4fb8d201bef59b9559751008fce2d0d2ea41cc2b16f43d4ac |
Close
Hashes for square_database_structure-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6825881d16f70ac75d96543d2f42373849133edf37132789b8834f19199a5b6c |
|
MD5 | a23d0f5a8041e1cec0f42a1645c0b8ea |
|
BLAKE2b-256 | 2eeaf09f33d18cb4e4a8a4d7a34f774a4ee5dc51117bc75e978dbe5aa636bc56 |