Installation
pip install sqllex
Version | Status | Tests, and actions |
---|
==0.2.3 | ✔️ supported ✔️ stable |  |
<=0.2.0.4 | ⚠️ outdated ⚠️ Security issue CVE-2022-0329 | ⚠️ Mostly passing |
<=0.1.10.4 | ❌️ outdated | ❌ |
Databases | Support |
---|
SQLite | ✔️ |
PostgreSQL | ✔️* |
* - partially support
About
Use databases without thinking about SQL.
Interact with a database as python object by intuitive methods
just like .insert()
, .select()
or .find()
.
Let me show you how sqllex ORM makes your life easier.
Imagine you need create some database, save some data into this
and take it back. That's how your easy to code it with sqllex.
SQLite3
from sqllex import *
db = SQLite3x(
path='my_database.db',
template={
"users": {
"username": [TEXT, NOT_NULL],
"age": INTEGER,
}
}
)
users = db["users"]
users.insert('Sqllex', 33)
users_33 = users.find(age=33)
print(users_33)
WHAT IS GOING ON THERE?!
from sqllex import *
db = SQLite3x(
path='my_data.db',
template={
"users": {
"username": [TEXT, NOT_NULL],
"age": INTEGER,
}
}
)
users = db["users"]
users.insert('Sqllex', 33)
users_33 = users.find(age=33)
print(users_33)
Examples

Other