Skip to content

sqlalchemy dialect for rqlite, the lightweight, distributed database built on SQLite.

License

Notifications You must be signed in to change notification settings

rqlite/sqlalchemy-rqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rqlite dialect for SQLAlchemy

https://circleci.com/gh/rqlite/sqlalchemy-rqlite/tree/master.svg?style=svg

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

About

sqlalchemy dialect for rqlite, the lightweight, distributed database built on SQLite.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages