All Projects → v1a0 → sqllex

v1a0 / sqllex

Licence: GPL-3.0 license
The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to sqllex

Qb
The database toolkit for go
Stars: ✭ 524 (+555%)
Mutual labels:  db, sqlite3
react-native-quick-sqlite
Fast SQLite for react-native.
Stars: ✭ 239 (+198.75%)
Mutual labels:  db, sqlite3
doteur
Tool to automate the visualisation of SQL schemas from a SQL file
Stars: ✭ 80 (+0%)
Mutual labels:  db, sqlite3
Android dbinspector
Android library for viewing and sharing in app databases.
Stars: ✭ 881 (+1001.25%)
Mutual labels:  db, sqlite3
dreamy-db
🔥 Dreamy-db - A Powerful database for storing, accessing, and managing multiple database.
Stars: ✭ 25 (-68.75%)
Mutual labels:  databases, sqlite3
Gorose
GoRose(go orm), a mini database ORM for golang, which inspired by the famous php framwork laravle's eloquent. It will be friendly for php developer and python or ruby developer. Currently provides six major database drivers: mysql,sqlite3,postgres,oracle,mssql, Clickhouse.
Stars: ✭ 947 (+1083.75%)
Mutual labels:  databases, db
nim-gatabase
Connection-Pooling Compile-Time ORM for Nim
Stars: ✭ 103 (+28.75%)
Mutual labels:  databases, sqlite3
Chaingear
The consensus computer driven database framework
Stars: ✭ 83 (+3.75%)
Mutual labels:  databases, db
Developer Handbook
An opinionated guide on how to become a professional Web/Mobile App Developer.
Stars: ✭ 1,830 (+2187.5%)
Mutual labels:  databases
Manage Fastapi
🚀 CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy.
Stars: ✭ 163 (+103.75%)
Mutual labels:  databases
Vanillacore
The core engine of VanillaDB
Stars: ✭ 119 (+48.75%)
Mutual labels:  databases
Nosqlmap
Automated NoSQL database enumeration and web application exploitation tool.
Stars: ✭ 1,928 (+2310%)
Mutual labels:  databases
Wither
An ODM for MongoDB built on the official MongoDB Rust driver.
Stars: ✭ 174 (+117.5%)
Mutual labels:  databases
Firenze
Adapter based JavaScript ORM for Node.js and the browser
Stars: ✭ 131 (+63.75%)
Mutual labels:  databases
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+197.5%)
Mutual labels:  databases
Dbplot
Simplifies plotting of database and sparklyr data
Stars: ✭ 117 (+46.25%)
Mutual labels:  databases
Awesome Nosql Guides
💻 Curated list of awesome resources and links about using NoSQL databases
Stars: ✭ 116 (+45%)
Mutual labels:  databases
Prest
PostgreSQL ➕ REST, low-code, simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new
Stars: ✭ 3,023 (+3678.75%)
Mutual labels:  databases
Hera
High Efficiency Reliable Access to data stores
Stars: ✭ 213 (+166.25%)
Mutual labels:  databases
Rom
Data mapping and persistence toolkit for Ruby
Stars: ✭ 1,959 (+2348.75%)
Mutual labels:  databases
sqllex logo

SQLLEX ORM v0.3.0

python-auto-ver lgtm-quality-img lgtm-alerts-img

pypi-version-img pypi-downloads-img

wiki-img docs-dark-img telegram-group-img


The most pythonic ORM. Seriously, try it out!

Installation

pip install sqllex
Version Status Tests, and actions
>=0.3.0 ✔️ Supported
✔️ Stable
code-ql-img
sqllex-tests-img
pypi-upload-img
<=0.2.3 ⚠️ OUTDATED ⚠️ Mostly passing
<=0.2.0.4 ❌️ Security issue
CVE-2022-0329
❌️
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)  # [('Sqllex', 33)]

WHAT IS GOING ON THERE?!
from sqllex import *

# Create some database, with simple structure
db = SQLite3x(                              # create database
    path='my_data.db',                      # path to your database, or where you would like it locate
    template={                              # schema for tables inside your database                              
        "users": {                              # name for the 1'st table
            "username": [TEXT, NOT_NULL],       # 1'st column of table, named "username", contains text-data, can't be NULL
            "age": INTEGER,                     # 2'nd column of table, named "age", contains integer value
        }                                   # end of table
    }                                       # end of schema (template)
)

# Ok, now you have database with table inside it.
# Let's take this table as variable
users = db["users"]

# Now add record of 33 years old user named 'Sqllex' into it
# Dear table, please insert ['Sqllex', 33] values
users.insert('Sqllex', 33)

# Dear table, please find records where_ column 'age' == 33
users_33 = users.find(age=33)

# Print results
print(users_33)  # [('Sqllex', 33)]

Examples

DMS Example
SQLite3 "Zero level" (v0.2+)
SQLite3 "Pre-Intermediate" (v0.2+)
SQLite3 Data Science (v0.1.8.4)
SQLite3 Project Showcase
PostgreSQL -

Community

stars-image

Not enough? Read more in Sqllex Documentation!

Wiki contents


Other

UPDATES

WARNING

LICENSE

DOCUMENTATION

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].