OwlCyberSecurity - MANAGER
Edit File: sql.pyc
� �t�ac @ s� d Z d d d g Z d d l Z y d d l Z Wn! e k rT d d l m Z n Xe j d � d d l m Z e � Z d Z e j Z d e f d � � YZ d S( s% Generic SQL database access object. t db_prefixt DatabaseErrort AbstractSQLDatabasei����N( t dbapi2s :memory:( t Loggers .db.c B s� e Z d Z e d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s! A generic SQL database. c C s | | _ | | _ | | _ d S( s� @param dbpath: the path where the db file is stored. @type dbpath: str @param persistent: C{True} if the data in the DB must be perserved during upgrades, C{False} if the DB data can be re-created from an external source. @type persistent: bool @param autocommit: C{True} if auto-commit mode is desired, C{False} otherwise @type autocommit: bool N( t dbpatht persistentt autocommit( t selfR R R ( ( s$ /opt/cpanel-ccs/twistedcaldav/sql.pyt __init__3 s c C s d | j j | j f S( Ns <%s %r>( t __class__t __name__R ( R ( ( s$ /opt/cpanel-ccs/twistedcaldav/sql.pyt __repr__B s c C s t � d S( sE @return: the schema version assigned to this index. N( t NotImplementedError( R ( ( s$ /opt/cpanel-ccs/twistedcaldav/sql.pyt _db_versionE s c C s t � d S( sF @return: the collection type assigned to this index. N( R ( R ( ( s$ /opt/cpanel-ccs/twistedcaldav/sql.pyt _db_typeK s c C s� t | d � s�| j } y: | j r? t j | d d �| _ n t j | � | _ Wn'