Metadata-Version: 2.1
Name: data-layer-lib
Version: 1.0.0
Summary: Database layer library
Author: Arif Nawaz
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: alembic (>=1.10.2,<2.0.0)
Requires-Dist: black (>=23.3.0,<24.0.0)
Requires-Dist: psycopg2-binary (>=2.9.3,<3.0.0)
Requires-Dist: pydantic (>=1.10.7,<2.0.0)
Requires-Dist: pylint (>=2.17.1,<3.0.0)
Requires-Dist: pytest (>=7.2.2,<8.0.0)
Requires-Dist: sqlalchemy (==2.0.7)
Description-Content-Type: text/markdown

# 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

