A good SQLian like a good shepherd.
Project description
A good SQLian like a good shepherd. I handle SQL strings so you don’t have to.
Sneak Peek
Connect to a database:
import sqlian db = sqlian.connect('postgresql:://user:pa55@localhost/contactbook')
Perform a query:
rows = db.select( 'name', 'occupation', from_='person', where={'main_language': 'Python'}, )
Access the data directly:
>>> rows[0] <Record {"name": "Mosky", "occupation": "Pinkoi"}>
Or iterate over them:
for r in rows: print('{} works at {}'.format(r.name, r.occupation))
Want more? Read the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlian-0.1.0.dev0.tar.gz
(16.2 kB
view hashes)
Built Distribution
Close
Hashes for sqlian-0.1.0.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903d0667eece2ab52a4a662856b504bfd6cd95160f87534d4eb332b2ff751817 |
|
MD5 | e1dfb17f7dc4cd750eb65e13a56cab32 |
|
BLAKE2b-256 | 5a001c4e58e24a5fea440220f0e018d1cbb6679a3c4f981004cdacbcd783f7b2 |