sqlite3.dbapi2
index
/usr/lib/python3.6/sqlite3/dbapi2.py

# pysqlite2/dbapi2.py: the DB-API 2.0 interface
#
# Copyright (C) 2004-2005 Gerhard Häring <gh@ghaering.de>
#
# This file is part of pysqlite.
#
# This software is provided 'as-is', without any express or implied
# warranty.  In no event will the authors be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to use this software for any purpose,
# including commercial applications, and to alter it and redistribute it
# freely, subject to the following restrictions:
#
# 1. The origin of this software must not be misrepresented; you must not
#    claim that you wrote the original software. If you use this software
#    in a product, an acknowledgment in the product documentation would be
#    appreciated but is not required.
# 2. Altered source versions must be plainly marked as such, and must not be
#    misrepresented as being the original software.
# 3. This notice may not be removed or altered from any source distribution.

 
Modules
       
collections
datetime
time

 
Functions
       
DateFromTicks(ticks)
TimeFromTicks(ticks)
TimestampFromTicks(ticks)
adapt(...)
adapt(obj, protocol, alternate) -> adapt obj to given protocol. Non-standard.
complete_statement(...)
complete_statement(sql)
 
Checks if a string contains a complete SQL statement. Non-standard.
connect(...)
connect(database[, timeout, detect_types, isolation_level,
        check_same_thread, factory, cached_statements, uri])
 
Opens a connection to the SQLite database file *database*. You can use
":memory:" to open a database connection to a database that resides in
RAM instead of on disk.
enable_callback_tracebacks(...)
enable_callback_tracebacks(flag)
 
Enable or disable callback functions throwing errors to stderr.
enable_shared_cache(...)
enable_shared_cache(do_enable)
 
Enable or disable shared cache mode for the calling thread.
Experimental/Non-standard.
register_adapter(...)
register_adapter(type, callable)
 
Registers an adapter with pysqlite's adapter registry. Non-standard.
register_converter(...)
register_converter(typename, callable)
 
Registers a converter with pysqlite. Non-standard.

 
Data
        PARSE_COLNAMES = 2
PARSE_DECLTYPES = 1
SQLITE_ALTER_TABLE = 26
SQLITE_ANALYZE = 28
SQLITE_ATTACH = 24
SQLITE_CREATE_INDEX = 1
SQLITE_CREATE_TABLE = 2
SQLITE_CREATE_TEMP_INDEX = 3
SQLITE_CREATE_TEMP_TABLE = 4
SQLITE_CREATE_TEMP_TRIGGER = 5
SQLITE_CREATE_TEMP_VIEW = 6
SQLITE_CREATE_TRIGGER = 7
SQLITE_CREATE_VIEW = 8
SQLITE_DELETE = 9
SQLITE_DENY = 1
SQLITE_DETACH = 25
SQLITE_DROP_INDEX = 10
SQLITE_DROP_TABLE = 11
SQLITE_DROP_TEMP_INDEX = 12
SQLITE_DROP_TEMP_TABLE = 13
SQLITE_DROP_TEMP_TRIGGER = 14
SQLITE_DROP_TEMP_VIEW = 15
SQLITE_DROP_TRIGGER = 16
SQLITE_DROP_VIEW = 17
SQLITE_IGNORE = 2
SQLITE_INSERT = 18
SQLITE_OK = 0
SQLITE_PRAGMA = 19
SQLITE_READ = 20
SQLITE_REINDEX = 27
SQLITE_SELECT = 21
SQLITE_TRANSACTION = 22
SQLITE_UPDATE = 23
adapters = {(<class 'datetime.date'>, <class 'sqlite3.PrepareProtocol'>): <function register_adapters_and_converters.<locals>.adapt_date>, (<class 'datetime.datetime'>, <class 'sqlite3.PrepareProtocol'>): <function register_adapters_and_converters.<locals>.adapt_datetime>}
apilevel = '2.0'
converters = {'DATE': <function register_adapters_and_converters.<locals>.convert_date>, 'TIMESTAMP': <function register_adapters_and_converters.<locals>.convert_timestamp>}
paramstyle = 'qmark'
sqlite_version = '3.22.0'
sqlite_version_info = (3, 22, 0)
threadsafety = 1
version = '2.6.0'
version_info = (2, 6, 0)