项目作者: hoehrmann

项目描述 :
Python module to use pysqlite3 as sqlalchemy dialect
高级语言: Python
项目地址: git://github.com/hoehrmann/sqlalchemy-pysqlite3.git
创建时间: 2019-04-07T16:38:36Z
项目社区:https://github.com/hoehrmann/sqlalchemy-pysqlite3

开源协议:MIT License

下载


sqlalchemy-pysqlite3

This module registers an SQLAlchemy dialect for sqlite that uses
pysqlite3.dbapi2 instead of pysqlite2.dbapi2 or sqlite3.dbapi2.
When pysqlite3 is linked to a more recent version of SQLite3 than
the system library, this allows you to use the newer version together
with SQLAlchemy.

It would also be possible to do by passing a module parameter to
create_engine, but that option is not always available.

Installation

  1. pip install sqlalchemy-pysqlite3

Synopsis

  1. from sqlalchemy import create_engine
  2. engine = create_engine('sqlite+pysqlite3:///:memory:', echo=True)