![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/lib/python2.7/dist-packages/sqlite/ |
Upload File : |
import _sqlite """Python interface to the SQLite embedded database engine.""" #------------------------------------------------------------------------------- # Module Information #------------------------------------------------------------------------------- __revision__ = """$Revision: 1.22 $"""[11:-2] threadsafety = 1 apilevel = "2.0" paramstyle = "pyformat" # This is the version string for the current PySQLite version. version = "1.0.1" # This is a tuple with the same digits as the vesrion string, but it's # suitable for comparisons of various versions. version_info = (1, 0, 1) #------------------------------------------------------------------------------- # Data type support #------------------------------------------------------------------------------- from main import DBAPITypeObject, Cursor, Connection, PgResultSet STRING = DBAPITypeObject(_sqlite.STRING) BINARY = DBAPITypeObject(_sqlite.BINARY) INT = DBAPITypeObject(_sqlite.INTEGER) NUMBER = DBAPITypeObject(_sqlite.INTEGER, _sqlite.FLOAT) DATE = DBAPITypeObject(_sqlite.DATE) TIME = DBAPITypeObject(_sqlite.TIME) TIMESTAMP = DBAPITypeObject(_sqlite.TIMESTAMP) ROWID = DBAPITypeObject() # Nonstandard extension: UNICODESTRING = DBAPITypeObject(_sqlite.UNICODESTRING) #------------------------------------------------------------------------------- # Exceptions #------------------------------------------------------------------------------- from _sqlite import Warning, Error, InterfaceError, \ DatabaseError, DataError, OperationalError, IntegrityError, InternalError, \ ProgrammingError, NotSupportedError #------------------------------------------------------------------------------- # Global Functions #------------------------------------------------------------------------------- def connect(*args, **kwargs): return Connection(*args, **kwargs) from _sqlite import encode, decode Binary = encode __all__ = ['connect','IntegrityError', 'InterfaceError', 'InternalError', 'NotSupportedError', 'OperationalError', 'ProgrammingError', 'Warning', 'Connection', 'Cursor', 'PgResultSet', 'apilevel', 'paramstyle', 'threadsafety', 'version', 'version_info', 'Binary', 'decode']