sqllex icon indicating copy to clipboard operation
sqllex copied to clipboard

The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!

Results 22 sqllex issues
Sort by recently updated
recently updated
newest added

**I love sqllex, but I need to use async and sqllex doesn't work properly with it.** How can I use sqllex asynchronously?

Not tested on Postgres, but the tests are prepared Old syntax ![изображение](https://user-images.githubusercontent.com/32395839/174648103-039331a0-33e7-40bc-9e8a-8142b5ea5804.png) New syntax ![изображение](https://user-images.githubusercontent.com/32395839/174648042-2b9372b3-60fe-43d1-a792-5eb853f3e6e0.png)

## Code ```python db = PostgreSQLx( engine=psycopg2, dbname='test_sqllex', user='test_sqllex', password='test_sqllex' ) db['employee'].select('id, firstName') db['employee'].select('id', 'firstName') ``` ```shell Error Traceback (most recent call last): File "some_postgresqlx.py", line 874, in test_select expected,...

bug

### [PEP 440 – Version Identification and Dependency Specification. Public version identifiers](https://peps.python.org/pep-0440/#public-version-identifiers) > The canonical public version identifiers MUST comply with the following scheme: ```regex [N!]N(.N)*[{a|b|rc}N][.postN][.devN] ``` > Public version...

Some doc's examples ([like this](https://v1a0.dev/sqllex/about-searchcondition.html)) have implicit imports: ```python from sqllex import * db = SQLite3x(path=...) db.create_table( 'users', { 'id': [INTEGER, PRIMARY_KEY, UNIQUE], 'name': [TEXT, NOT_NULL, DEFAULT, 'Unknown'] } )...

docs
help wanted
discussion

## Sqllex v0.1.10.3b Converting `(tuples)` to `[lists]` costs for select-like methods 55.8% of all time. This is an results for: ```python def select_where_1(db: SQLite3x): db.select( 'main', 'id', WHERE={ 'name': 'Alex'...

bug
help wanted
good first issue
discussion

Add `__enter__` and `__exit__` methods for db, table and column classes to make possible nice temporary connection. ```python from sqllex import SQLite3x with SQLite3x('/path/database.db') as db: # creting connection db.insert(...)...

# In this issue you can leave your request for new constant. ## List of existing constants: ### SQLite3x ``` __all__ = [ 'ABORT', 'ALL', 'AS', 'AUTOINCREMENT', 'BLOB', 'CHECK', 'CONST_PRIORITY',...

feature
help wanted
good first issue

Get size of SQLite3x database ```python db: SQLite3x = ... print(db.get_size()) print(db._size) print(db._file_size) ```

feature
good first issue
discussion

Rename/migrate SQLite database and don't destroy all existing connected objects. ```python db: SQLite3x = ... db.rename("new_name") db._migrate("new_path") ``` I guess it might be useful

feature
discussion