Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 962 Bytes

README.md

File metadata and controls

49 lines (30 loc) · 962 Bytes

MonetDB dialect for SQLAlchemy

installation

to install this dialect run::

$ pip install -r ./requirements.txt
$ python ./setup.py install

usage

To start using this dialect::

from sqlalchemy import create_engine
engine = create_engine('monetdb:///demo:', 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("monetdb", "sqlalchemy_monetdb", "MDBDialect")

testing

to test run::

$ ./test_suite.py

note: you need to have nose and mock installed::

$ pip install nose mock

more info

credits

This is based on Matt Harrison's earlier MonetDB dialect for SA from here: http://www.sqlalchemy.org/trac/ticket/874#no1.