Skip to main content

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

square_database_structure-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file square_database_structure-1.0.1.tar.gz.

File metadata

File hashes

Hashes for square_database_structure-1.0.1.tar.gz
Algorithm Hash digest
SHA256 544574d0f82181290642eb1628ba57b2a4a1ba40d42082eeea3d945821a6b273
MD5 71d0cb119360cdd5aad492d326a6cded
BLAKE2b-256 c596e66d45e0f47a395261b63ac697a6e5d4e3df6593bd52b3c4fa6488214305

See more details on using hashes here.

File details

Details for the file square_database_structure-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for square_database_structure-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58bb3d3442214a4fce1ade7c807de36959e66d4dae1defe4bde84ed0a3c2f36b
MD5 959ec964b581a55ad7cc143e58c0b165
BLAKE2b-256 c0d68eac54c5d5682353c6f598f4acabb6fb4d9567751913813ad52f76d51083

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page