Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uranusjr/sqlian
A good SQLian like a good shepherd.
https://github.com/uranusjr/sqlian
sql
Last synced: about 1 month ago
JSON representation
A good SQLian like a good shepherd.
- Host: GitHub
- URL: https://github.com/uranusjr/sqlian
- Owner: uranusjr
- License: isc
- Created: 2017-08-23T12:13:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T13:12:19.000Z (over 7 years ago)
- Last Synced: 2024-11-16T14:36:08.234Z (about 2 months ago)
- Topics: sql
- Language: Python
- Homepage: https://sqlian.readthedocs.io/
- Size: 249 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=======
SQLian
=======.. image:: https://travis-ci.org/uranusjr/sqlian.svg?branch=master
:target: https://travis-ci.org/uranusjr/sqlian
:alt: Project Build Status.. image:: https://readthedocs.org/projects/sqlian/badge/?version=latest
:target: http://sqlian.readthedocs.io/en/latest/?badge=latest
:alt: Documentation StatusA 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]
Or iterate over them::
for r in rows:
print('{} works at {}'.format(r.name, r.occupation))Want more? `Read the documentation. `__