Giter Club home page Giter Club logo

sqlalchemy-pysqlite3's Introduction

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

pip install sqlalchemy-pysqlite3

Synopsis

from sqlalchemy import create_engine

engine = create_engine('sqlite+pysqlite3:///:memory:', echo=True)

sqlalchemy-pysqlite3's People

Contributors

hoehrmann avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sqlalchemy-pysqlite3's Issues

SQL compilation caching

I get this warning:

Dialect sqlite:pysqlite will not make use of SQL compilation caching as it does not set the 'supports_statement_cache' attribute to True. This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions. Dialect maintainers should seek to set this attribute to True after appropriate development and testing for SQLAlchemy 1.4 caching support. Alternatively, this attribute may be set to False which will disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)

Related: coleifer/pysqlite3#35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.