Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad name NameStore body ImportFrom alias identifier handlers ExceptHandler type NameLoad name NameStore body Import alias ImportFrom alias If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num Num body Assign NameStore Str Assign NameStore NameLoad orelse Assign NameStore Str Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults CompareEq Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num Num body Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Return NameLoad Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore ListComp BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Return ListLoad BinOpMod NameLoad NameLoad BinOpMod NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpOr BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str CompareEq NameLoad Str body Return Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot SubscriptLoad NameLoad Index Str body ImportFrom alias Raise Call NameLoad Str Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Str Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad If CompareEq NameLoad Str body Return BinOpAdd BinOpMod Call AttributeLoad NameLoad attr Num Num orelse Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad If CompareEq NameLoad Str body Return BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad NameLoad orelse Assign NameStore BinOpSub NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias TryExcept body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list
N/A N/A 
SQLite3 backend for django.

Python 2.4 requires pysqlite2 (http://pysqlite.org/).

Python 2.5 and later can use a pysqlite2 module or the sqlite3 module in the
standard library.
 N/A re N/A sys N/A datetime django.db utils django.db.backends * django.db.backends.signals connection_created django.db.backends.sqlite3.client DatabaseClient django.db.backends.sqlite3.creation DatabaseCreation django.db.backends.sqlite3.introspection DatabaseIntrospection django.utils.safestring SafeString N/A N/A N/A N/A pysqlite2 dbapi2 Database N/A N/A N/A ImportError N/A e1 N/A sqlite3 dbapi2 Database N/A N/A N/A ImportError N/A exc N/A N/A sys django.core.exceptions ImproperlyConfigured N/A N/A N/A sys version_info N/A 2 5 0 N/A N/A module pysqlite2 module N/A exc e1 N/A N/A module either pysqlite2 or sqlite3 modules (tried in that order) N/A N/A ImproperlyConfigured N/A Error loading %s: %s N/A module exc N/A DatabaseError N/A Database DatabaseError N/A IntegrityError N/A Database IntegrityError N/A N/A N/A Database register_converter bool N/A N/A N/A s N/A N/A N/A str s 1 N/A N/A N/A Database register_converter time N/A util typecast_time N/A N/A N/A Database register_converter date N/A util typecast_date N/A N/A N/A Database register_converter datetime N/A util typecast_timestamp N/A N/A N/A Database register_converter timestamp N/A util typecast_timestamp N/A N/A N/A Database register_converter TIMESTAMP N/A util typecast_timestamp N/A N/A N/A Database register_converter decimal N/A util typecast_decimal N/A N/A N/A Database register_adapter N/A decimal Decimal N/A util rev_typecast_decimal N/A N/A N/A Database version_info N/A 2 4 1 N/A N/A N/A N/A Database register_adapter str N/A N/A N/A s N/A N/A N/A s decode utf-8 N/A N/A N/A Database register_adapter SafeString N/A N/A N/A s N/A N/A N/A s decode utf-8 DatabaseFeatures N/A BaseDatabaseFeatures N/A N/A can_use_chunked_reads False N/A test_db_allows_multiple_connections False N/A supports_unspecified_pk True N/A supports_1000_query_parameters False N/A supports_mixed_date_datetime_comparisons False _supports_stddev N/A N/A self N/A N/A N/A Confirm support for STDDEV and related stats functions

        SQLite supports STDDEV as an extension package; so
        connection.ops.check_aggregate_support() can't unilaterally
        rule out support for STDDEV. We need to manually check
        whether the call works.
         N/A cursor N/A N/A N/A self connection cursor N/A N/A N/A cursor execute CREATE TABLE STDDEV_TEST (X INT) N/A N/A N/A N/A N/A cursor execute SELECT STDDEV(*) FROM STDDEV_TEST N/A has_support True N/A N/A N/A N/A utils DatabaseError N/A N/A has_support False N/A N/A N/A cursor execute DROP TABLE STDDEV_TEST N/A has_support N/A N/A DatabaseOperations N/A BaseDatabaseOperations N/A date_extract_sql N/A N/A self lookup_type field_name N/A N/A N/A N/A django_extract('%s', %s) N/A N/A N/A lookup_type lower field_name N/A date_interval_sql N/A N/A self sql connector timedelta N/A N/A N/A N/A django_format_dtdelta(%s, "%s", "%d", "%d", "%d") N/A sql connector N/A timedelta days N/A timedelta seconds N/A timedelta microseconds N/A date_trunc_sql N/A N/A self lookup_type field_name N/A N/A N/A N/A django_date_trunc('%s', %s) N/A N/A N/A lookup_type lower field_name N/A drop_foreignkey_sql N/A N/A self N/A N/A N/A N/A pk_default_value N/A N/A self N/A N/A N/A NULL N/A quote_name N/A N/A self name N/A N/A N/A N/A N/A N/A name startswith " N/A N/A name endswith " N/A N/A name N/A N/A "%s" name N/A no_limit_value N/A N/A self N/A N/A N/A -1 N/A sql_flush N/A N/A self style tables sequences N/A N/A N/A sql N/A N/A %s %s %s; N/A N/A N/A style SQL_KEYWORD DELETE N/A N/A style SQL_KEYWORD FROM N/A N/A style SQL_FIELD N/A N/A self quote_name table N/A table tables N/A sql N/A year_lookup_bounds N/A N/A self value N/A N/A N/A first %s-01-01 N/A second %s-12-31 23:59:59.999999 N/A N/A N/A first value N/A second value N/A convert_values N/A N/A self value field N/A N/A N/A SQLite returns floats when it should be returning decimals,
        and gets dates and datetimes wrong.
        For consistency with other backends, coerce when required.
         N/A internal_type N/A N/A field get_internal_type N/A N/A internal_type DecimalField N/A N/A N/A N/A util typecast_decimal N/A N/A field format_number value N/A N/A N/A N/A internal_type N/A N/A internal_type endswith IntegerField N/A internal_type AutoField N/A N/A N/A int value N/A N/A N/A internal_type DateField N/A N/A N/A N/A util typecast_date value N/A N/A N/A internal_type DateTimeField N/A N/A N/A N/A util typecast_timestamp value N/A N/A N/A internal_type TimeField N/A N/A N/A N/A util typecast_time value N/A value N/A N/A DatabaseWrapper N/A BaseDatabaseWrapper N/A N/A vendor sqlite N/A operators N/A exact iexact contains icontains regex iregex gt gte lt lte startswith endswith istartswith iendswith = %s LIKE %s ESCAPE '\' LIKE %s ESCAPE '\' LIKE %s ESCAPE '\' REGEXP %s REGEXP '(?i)' || %s > %s >= %s < %s <= %s LIKE %s ESCAPE '\' LIKE %s ESCAPE '\' LIKE %s ESCAPE '\' LIKE %s ESCAPE '\' __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super DatabaseWrapper self __init__ args kwargs N/A N/A self features N/A DatabaseFeatures self N/A N/A self ops N/A DatabaseOperations N/A N/A self client N/A DatabaseClient self N/A N/A self creation N/A DatabaseCreation self N/A N/A self introspection N/A DatabaseIntrospection self N/A N/A self validation N/A BaseDatabaseValidation self N/A _cursor N/A N/A self N/A N/A N/A N/A N/A self connection None N/A N/A settings_dict N/A self settings_dict N/A N/A N/A settings_dict N/A NAME N/A django.core.exceptions ImproperlyConfigured N/A N/A ImproperlyConfigured Please fill out the database NAME in the settings module before using the database. N/A kwargs N/A database detect_types N/A settings_dict N/A NAME N/A N/A Database PARSE_DECLTYPES N/A Database PARSE_COLNAMES N/A N/A N/A kwargs update N/A settings_dict N/A OPTIONS N/A N/A self connection N/A N/A Database connect kwargs N/A N/A N/A N/A self connection create_function django_extract 2 _sqlite_extract N/A N/A N/A N/A self connection create_function django_date_trunc 2 _sqlite_date_trunc N/A N/A N/A N/A self connection create_function regexp 2 _sqlite_regexp N/A N/A N/A N/A self connection create_function django_format_dtdelta 5 _sqlite_format_dtdelta N/A N/A N/A connection_created send sender N/A self __class__ connection self N/A N/A N/A N/A self connection cursor factory SQLiteCursorWrapper N/A close N/A N/A self N/A N/A N/A N/A N/A N/A self settings_dict N/A NAME :memory: N/A N/A N/A N/A BaseDatabaseWrapper close self N/A N/A N/A FORMAT_QMARK_REGEX N/A N/A re compile (?<!%)%s SQLiteCursorWrapper N/A N/A Database Cursor N/A N/A 
    Django uses "format" style placeholders, but pysqlite2 uses "qmark" style.
    This fixes it -- but note that if you want to use a literal "%s" in a query,
    you'll need to use "%%s".
     execute N/A N/A self query params N/A N/A N/A N/A query N/A N/A self convert_query query N/A N/A N/A N/A N/A N/A Database Cursor execute self query params N/A N/A N/A N/A Database IntegrityError N/A e N/A N/A N/A utils IntegrityError N/A N/A utils IntegrityError N/A tuple e N/A N/A N/A sys exc_info N/A 2 N/A N/A N/A Database DatabaseError N/A e N/A N/A N/A utils DatabaseError N/A N/A utils DatabaseError N/A tuple e N/A N/A N/A sys exc_info N/A 2 N/A executemany N/A N/A self query param_list N/A N/A N/A query N/A N/A self convert_query query N/A N/A N/A N/A N/A N/A Database Cursor executemany self query param_list N/A N/A N/A N/A Database IntegrityError N/A e N/A N/A N/A utils IntegrityError N/A N/A utils IntegrityError N/A tuple e N/A N/A N/A sys exc_info N/A 2 N/A N/A N/A Database DatabaseError N/A e N/A N/A N/A utils DatabaseError N/A N/A utils DatabaseError N/A tuple e N/A N/A N/A sys exc_info N/A 2 N/A convert_query N/A N/A self query N/A N/A N/A N/A N/A N/A N/A FORMAT_QMARK_REGEX sub ? query replace %% % N/A N/A _sqlite_extract N/A N/A lookup_type dt N/A N/A N/A N/A dt None N/A N/A None N/A N/A N/A dt N/A N/A util typecast_timestamp dt N/A N/A N/A N/A ValueError TypeError N/A N/A None N/A N/A lookup_type week_day N/A N/A N/A N/A N/A N/A dt isoweekday 7 1 N/A N/A N/A getattr dt lookup_type N/A _sqlite_date_trunc N/A N/A lookup_type dt N/A N/A N/A N/A N/A dt N/A N/A util typecast_timestamp dt N/A N/A N/A N/A ValueError TypeError N/A N/A None N/A N/A lookup_type year N/A N/A N/A %i-01-01 00:00:00 N/A dt year N/A N/A N/A lookup_type month N/A N/A N/A %i-%02i-01 00:00:00 N/A N/A dt year N/A dt month N/A N/A N/A lookup_type day N/A N/A N/A %i-%02i-%02i 00:00:00 N/A N/A dt year N/A dt month N/A dt day N/A _sqlite_format_dtdelta N/A N/A dt conn days secs usecs N/A N/A N/A N/A N/A dt N/A N/A util typecast_timestamp dt N/A delta N/A N/A datetime timedelta N/A int days N/A int secs N/A int usecs N/A N/A N/A N/A conn strip + N/A N/A dt N/A dt delta N/A N/A dt N/A dt delta N/A N/A N/A N/A ValueError TypeError N/A N/A None N/A N/A isinstance dt N/A datetime datetime N/A N/A rv N/A N/A dt strftime %Y-%m-%d %H:%M:%S N/A N/A dt microsecond N/A N/A rv N/A %s.%0.6d N/A rv N/A dt microsecond N/A N/A rv N/A N/A dt strftime %Y-%m-%d N/A rv N/A _sqlite_regexp N/A N/A re_pattern re_string N/A N/A N/A re N/A N/A N/A N/A bool N/A N/A re search re_pattern re_string N/A N/A N/A N/A False N/A