Skip to main content

SQLAlchemy dialect for MonetDB

Project description

https://travis-ci.org/gijzelaerr/sqlalchemy-monetdb.png?branch=master https://badges.gitter.im/JoinChat.svg

installation

To install this dialect run:

$ pip install sqlalchemy_monetdb

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('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.dialect", "MonetDialect")

testing

you need to have nose and mock installed:

$ pip install nose mock

create a database test:

$ monetdb create test && monetdb release test

Create a test schema:

$ echo "create schema test_schema;" | mclient test
$ echo "create schema test_schema2;" | mclient test
$ echo "alter user monetdb set schema test_schema2;" | mclient test

Run the test suite:

$ ./test_suite.py

more info

Authors

  • Matt Harrison

  • Pete Hollobon

  • Gijs Molenaar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy_monetdb-0.9.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file sqlalchemy_monetdb-0.9.tar.gz.

File metadata

File hashes

Hashes for sqlalchemy_monetdb-0.9.tar.gz
Algorithm Hash digest
SHA256 680ec67cb01f67ae6860c6d5cf0e89a82250da6bb575c110db03fbab655a2f3b
MD5 389dec9541da3ab009c057e3ec485e28
BLAKE2b-256 9da01693d081113f307f0a70a61b361a925c4bbe0d0196e3fa59d2c4353afde3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page