Skip to content

Commit

Permalink
feat: v1.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ddc committed Nov 30, 2024
1 parent cce716c commit 3b9cf21
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 7 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Few Utility Functions
# Databases Connection and Queries

[![License](https://img.shields.io/github/license/ddc/ddcDatabases.svg)](https://github.com/ddc/ddcDatabases/blob/master/LICENSE)
[![Python](https://img.shields.io/badge/Python-3.10+-blue.svg)](https://www.python.org)
Expand All @@ -7,17 +7,21 @@
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A//actions-badge.atrox.dev/ddc/ddcDatabases/badge?ref=main&label=build&logo=none)](https://actions-badge.atrox.dev/ddc/ddcDatabases/goto?ref=main)



# Install All databases dependencies
```shell
pip install ddcDatabases[all]
```



# Install MSSQL
```shell
pip install ddcDatabases[mssql]
```



# Install PostgreSQL
```shell
pip install ddcDatabases[pgsql]
Expand All @@ -26,7 +30,7 @@ pip install ddcDatabases[pgsql]


# Databases
+ Parameters for all classes are declared as OPTIONAL falling back to [.env](.env.example) file
+ Parameters for all classes are declared as OPTIONAL falling back to [.env](./ddcDatabases/.env.example) file
+ All examples are using [db_utils.py](ddcDatabases/db_utils.py)
+ By default, the MSSQL class will open a session to the database, but the engine can be available

Expand Down Expand Up @@ -201,9 +205,10 @@ poetry build -f wheel



# Run Tests and Get Coverage Report
# Run Tests and Get Coverage Report using Poe
```shell
poetry run coverage run --omit=./tests/* --source=./ddcDatabases -m pytest -v && poetry run coverage report
poetry update --with test
poe tests
```


Expand Down
File renamed without changes.
94 changes: 93 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "ddcDatabases"
version = "1.0.11"
description = "Custom Database Connection and Queries"
version = "1.0.12"
description = "Databases Connection and Queries"
license = "MIT"
readme = "README.md"
authors = ["Daniel Costa <danieldcsta@gmail.com>"]
Expand Down Expand Up @@ -53,4 +53,11 @@ all = [ "pyodbc", "aioodbc", "psycopg2", "asyncpg" ]
[tool.poetry.group.test.dependencies]
coverage = ">=7.6.8"
faker = ">=33.0.0"
poethepoet = ">=0.31.1"
pytest = ">=8.3.3"

[tool.poe.tasks]
_test = "poetry run coverage run --omit=./tests/* --source=./ddcDatabases -m pytest -v"
_coverage = "poetry run coverage report"
tests = ["_test", "_coverage"]
test = ["tests"]

0 comments on commit 3b9cf21

Please sign in to comment.