Sqllex

Latest version: v0.3.0.post2

Safety actively analyzes 626363 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

0.3.0.post2

Hotfix for [sqllex v0.3.0](https://github.com/v1a0/sqllex/releases/tag/v0.3.0)

- Typing fix for \_\_getattr\_\_
- README and docs upd
- Time-tests fixed

0.3.0

What's new

- Removed psycopg2 requirement (dependency)
- Dependency calls were replaced by an abstract classes
- ABColumn replaced by child classes SQLite3xColumn PostgreSQLxColumn
- Fixing typing issues
- Docs update (issue https://github.com/v1a0/sqllex/issues/60)
- Tests structure changed, finished tests for postgresqlx
- Changed abstractions sructure for psql engine ([v0.3.0b2](https://github.com/v1a0/sqllex/commit/863f7f26a286c8006e828fbcdc945946d9a623c8))
- Minor bugfix

How to use Postgres now
Due to `psycopg2` was removed from sqllex dependencies now you have to install it manually for postures support (or you can use any similar engine). After this just add one new parameter ("engine") into PostgreSQLx constructor:

python
import psycopg2

db = sx.PostgreSQLx(
engine=psycopg2, Postgres engine
...
)


Read [PostgreSQLx docs](https://github.com/v1a0/sqllex/blob/main/docs/about-postgresqlx.md) for more details.

Why **psycopg2** is not "from-the-box" anymore
Many developers who use sqllex only to work with SQLite have complained about problems installing the package due to the psycopg2 dependency. I also had these difficulties. One and only decision was to install this dependency manually from binaries. Therefore, it was decided to rid the library of a problematic dependency, but leave the ability to connect it back as needed.

0.2.3

- Release version (changed semantic versioning) (issue 61)

0.2.2.3

- Added catching optional connection_kwargs for SQLite3x (with init)
`db = SQLite3x(path=..., ..., check_same_thread=False)`
- Co-Authored-By: dannkunt <32395839+dannkuntusers.noreply.github.com>

0.2.2.2

- Added Python versions (3.8, 3.10) supported mark in setup.py
- Auto detection of supported python versions for README
- Added workflow for Python 3.10 unit tests

0.2.2.2a1

- Removed unnecessary deletion of local variable self in function __del__ AbstractDatabase
- Unreachable statement in copy_docs
- Added '\_\_all\_\_' for constants/sqlite.py, constants/postgresql.py
- Updated '\_\_all\_\_' for constants/\_\_init\_\_.py

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.