Skip to content

Commit

Permalink
v1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ddc committed Nov 30, 2024
1 parent 85b48a5 commit cce716c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: ddc
ko_fi: ddcsta
custom: "https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ"
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Few Utility Functions

[![License](https://img.shields.io/github/license/ddc/ddcDatabases.svg?style=plastic)](https://github.com/ddc/ddcDatabases/blob/master/LICENSE)
[![Python](https://img.shields.io/badge/Python-3.10+-blue.svg?style=plastic)](https://www.python.org)
[![PyPi](https://img.shields.io/pypi/v/ddcDatabases.svg?style=plastic)](https://pypi.python.org/pypi/ddcDatabases)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A//actions-badge.atrox.dev/ddc/ddcDatabases/badge?ref=main&style=plastic&label=build&logo=none)](https://actions-badge.atrox.dev/ddc/ddcDatabases/goto?ref=main)
[![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)
[![PyPi](https://img.shields.io/pypi/v/ddcDatabases.svg)](https://pypi.python.org/pypi/ddcDatabases)
[![PyPI Downloads](https://static.pepy.tech/badge/ddcDatabases)](https://pepy.tech/projects/ddcDatabases)
[![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
Expand Down Expand Up @@ -32,7 +33,7 @@ pip install ddcDatabases[pgsql]



## SQLITE
# SQLITE
```
class Sqlite(
file_path: Optional[str] = None,
Expand Down Expand Up @@ -63,7 +64,7 @@ with Sqlite().engine() as engine:



## MSSQL
# MSSQL
```
class MSSQL(
host: Optional[str] = None,
Expand Down Expand Up @@ -120,7 +121,7 @@ async with MSSQL().async_engine() as engine:



## PostgreSQL
# PostgreSQL
+ Using driver [psycopg2](https://pypi.org/project/psycopg2/) as default
```
class DBPostgres(
Expand Down Expand Up @@ -174,7 +175,7 @@ async with PostgreSQL().async_engine() as engine:



## DBUtils and DBUtilsAsync
# DBUtils and DBUtilsAsync
+ Take an open session as parameter
+ Can use SQLAlchemy statements
+ Execute function can be used to update, insert or any SQLAlchemy.text
Expand All @@ -199,7 +200,8 @@ poetry build -f wheel
```


### Run Tests and Get Coverage Report

# Run Tests and Get Coverage Report
```shell
poetry run coverage run --omit=./tests/* --source=./ddcDatabases -m pytest -v && poetry run coverage report
```
Expand All @@ -208,3 +210,10 @@ poetry run coverage run --omit=./tests/* --source=./ddcDatabases -m pytest -v &&

# License
Released under the [MIT License](LICENSE)



# Buy me a cup of coffee
+ [GitHub Sponsor](https://github.com/sponsors/ddc)
+ [ko-fi](https://ko-fi.com/ddcsta)
+ [Paypal](https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ)
15 changes: 11 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,24 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "ddcDatabases"
version = "1.0.10"
description = "Custom Database Queries"
version = "1.0.11"
description = "Custom Database Connection and Queries"
license = "MIT"
readme = "README.md"
authors = ["Daniel Costa <danieldcsta@gmail.com>"]
maintainers = ["Daniel Costa"]
repository = "https://github.com/ddc/ddcDatabases"
homepage = "https://github.com/ddc/ddcDatabases"
homepage = "https://pypi.org/project/ddcDatabases"
packages = [{include = "ddcDatabases"}]
package-mode = true
keywords = ["python3", "databases", "ddcDatabases"]
keywords = [
"python3", "python-3", "python",
"databases", "database",
"sqlite", "sqlite3", "sqlite3-database",
"mssql", "mssql-database",
"postgres", "postgresql", "postgresql-database",
"postgressql","ddcDatabases"
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit cce716c

Please sign in to comment.