https://github.com/rqlite/sqlalchemy-rqlite
sqlalchemy dialect for rqlite, the lightweight, distributed database built on SQLite.
https://github.com/rqlite/sqlalchemy-rqlite
Last synced: 9 months ago
JSON representation
sqlalchemy dialect for rqlite, the lightweight, distributed database built on SQLite.
- Host: GitHub
- URL: https://github.com/rqlite/sqlalchemy-rqlite
- Owner: rqlite
- License: mit
- Created: 2016-02-24T02:44:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T04:38:54.000Z (over 1 year ago)
- Last Synced: 2025-04-02T21:42:38.716Z (9 months ago)
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 44
- Watchers: 4
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
rqlite dialect for SQLAlchemy
==============================
.. image:: https://circleci.com/gh/rqlite/sqlalchemy-rqlite/tree/master.svg?style=svg
:target: https://circleci.com/gh/rqlite/sqlalchemy-rqlite/?branch=master
This is the rqlite dialect driver for SQLAlchemy.
installation
------------
To install this dialect run::
$ pip install sqlalchemy_rqlite
or from source::
$ pip install -r ./requirements.txt
$ python ./setup.py install
usage
-----
To start using this dialect::
from sqlalchemy import create_engine
engine = create_engine('rqlite+pyrqlite://localhost:4001/', echo=True)
If you don't want to install this library (for example during development) add
this folder to your PYTHONPATH and register this dialect with SQLAlchemy::
from sqlalchemy.dialects import registry
registry.register("rqlite.pyrqlite", "sqlalchemy_rqlite.pyrqlite", "dialect")
testing
-------
you need to have pytest and pytest-cov installed::
$ pip install pytest pytest-cov
Run the test suite::
$ python setup.py test
more info
---------
* http://www.sqlalchemy.org/
* https://github.com/rqlite/rqlite