Database layer library
Project description
data-layer-lib
Database Layer Library
introduction
This is a library package for handling database models.
Getting Started
1- Clone the repository
2- To manually create a virtualenv
$ python -m venv .venv
3- To install all the dependencies
$ poetry install
4- To create a migration for the first time, execute the following command
$ alembic revision --autogenerate -m "migration name"
The same command can be used to generate a new migrations
5- Verify the alembic autogenerated db scripts
6- To apply migrations, execute the following command. This will to create/update tables in the database
$ alembic upgrade head
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
data_layer_lib-1.0.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for data_layer_lib-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20bc61d86c0c07aabdf15d0cd868c0baaec080e8c79274bf0845ca604dc6da39 |
|
MD5 | 3d95d27c01c5ebcdde85120340e78d3d |
|
BLAKE2b-256 | 73fa0b9a07303920c279d6976656aaf3d94354376f4cfc56fa129e1f47521a08 |