Package sqlite3 :: Module dbapi2
[hide private]
[frames] | no frames]

Module dbapi2

source code

PyMySQL: A pure-Python drop-in replacement for MySQLdb.

Copyright (c) 2010 PyMySQL contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Functions [hide private]
 
DateFromTicks(ticks) source code
 
TimeFromTicks(ticks) source code
 
TimestampFromTicks(ticks) source code
Variables [hide private]
  PARSE_COLNAMES = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  PARSE_DECLTYPES = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  SQLITE_ALTER_TABLE = 26
  SQLITE_ANALYZE = 28
  SQLITE_ATTACH = 24
  SQLITE_CREATE_INDEX = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  SQLITE_CREATE_TABLE = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  SQLITE_CREATE_TEMP_INDEX = 3
  SQLITE_CREATE_TEMP_TABLE = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  SQLITE_CREATE_TEMP_TRIGGER = 5
  SQLITE_CREATE_TEMP_VIEW = 6
  SQLITE_CREATE_TRIGGER = 7
  SQLITE_CREATE_VIEW = 8
  SQLITE_DELETE = 9
  SQLITE_DENY = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  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 = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  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 = {(<type 'datetime.date'>, <type 'sqlite3.PreparePro...
  apilevel = '2.0'
  converters = {'DATE': <function convert_date at 0xd25668>, 'TI...
  paramstyle = 'qmark'
  sqlite_version = '3.4.2'
  sqlite_version_info = (3, 4, 2)
  threadsafety = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
  version = '2.3.2'
  version_info = (2, 3, 2)
  x = '2'
Variables Details [hide private]

adapters

Value:
{(<type 'datetime.date'>, <type 'sqlite3.PrepareProtocol'>): <function\
 adapt_date at 0xd25578>,
 (<type 'datetime.datetime'>, <type 'sqlite3.PrepareProtocol'>): <func\
tion adapt_datetime at 0xd255f0>}

converters

Value:
{'DATE': <function convert_date at 0xd25668>,
 'TIMESTAMP': <function convert_timestamp at 0xd256e0>}