Package winappdbg :: Module sql :: Class _SQLitePatch
[hide private]
[frames] | no frames]

Class _SQLitePatch

source code


Used internally by BaseDAO.

After connecting to an SQLite database, ensure that the foreign keys support is enabled. If not, abort the connection.


See Also: http://sqlite.org/foreignkeys.html

Instance Methods [hide private]
 
connect(dbapi_connection, connection_record)
Called once by SQLAlchemy for each new SQLite DB-API connection.
source code

Inherited from sqlalchemy.interfaces.PoolListener: checkin, checkout, first_connect

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from sqlalchemy.interfaces.PoolListener (private): _adapt_listener

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

connect(dbapi_connection, connection_record)

source code 

Called once by SQLAlchemy for each new SQLite DB-API connection.

Here is where we issue some PRAGMA statements to configure how we're going to access the SQLite database.

Parameters:
  • dbapi_connection - A newly connected raw SQLite DB-API connection.
  • connection_record - Unused by this method.
Overrides: sqlalchemy.interfaces.PoolListener.connect