莫内茨方言
sqlalchemy_monetdb的Python项目详细描述
这是用于sqlalchemy的monetdb方言驱动程序。它支持python 2.7、3.3+甚至pypy。它支持 sqlalchemy 1.0、1.1和1.2。
安装
要安装此方言,请运行:
$ pip install sqlalchemy_monetdb
或从源文件夹:
$ pip install .
用法
开始使用这种方言:
from sqlalchemy import create_engine engine = create_engine('monetdb:///demo:', echo=True)
MonetDB Lite(实验)
我们现在有对MonetDB Lite的实验性支持!注意,这是实验性的,可能会破裂。
首先需要手动安装monetdb lite:https://github.com/hannesmuehleisen/MonetDBLite-Python
要连接到MonetBlite数据库,请使用以下语法:
from sqlalchemy import create_engine engine = create_engine('monetdb+lite:////tmp/monetdb_lite')