|
发表于 2005-8-23 14:41:53
|
显示全部楼层
In [2]: import sqlite
In [3]: dir sqlite
------> dir(sqlite)
Out[3]:
['BINARY',
'Binary',
'Connection',
'Cursor',
'DATE',
'DBAPITypeObject',
'DataError',
'DatabaseError',
'Error',
'INT',
'IntegrityError',
'InterfaceError',
'InternalError',
'NUMBER',
'NotSupportedError',
'OperationalError',
'PgResultSet',
'ProgrammingError',
'ROWID',
'STRING',
'TIME',
'TIMESTAMP',
'UNICODESTRING',
'Warning',
'__all__',
'__builtins__',
'__doc__',
'__file__',
'__name__',
'__path__',
'__revision__',
'_sqlite',
'apilevel',
'connect',
'decode',
'encode',
'main',
'paramstyle',
'threadsafety',
'version',
'version_info']
In [4]:
In [4]: help sqlite
------> help(sqlite)
- Help on package sqlite:
- NAME
- sqlite
- FILE
- /usr/lib/python2.3/site-packages/sqlite/__init__.py
- PACKAGE CONTENTS
- main
- FUNCTIONS
- Binary = encode(...)
- encode(s) -> encoded binary string.
- Encode binary string 's' for storage in SQLite.
- connect(*args, **kwargs)
- decode(...)
- decode(s) -> decoded binary string.
- Decode encoded binary string retrieved from SQLite.
- encode(...)
- encode(s) -> encoded binary string.
- Encode binary string 's' for storage in SQLite.
- DATA
- BINARY = <sqlite.main.DBAPITypeObject instance>
- DATE = <sqlite.main.DBAPITypeObject instance>
- INT = <sqlite.main.DBAPITypeObject instance>
- NUMBER = <sqlite.main.DBAPITypeObject instance>
- ROWID = <sqlite.main.DBAPITypeObject instance>
- STRING = <sqlite.main.DBAPITypeObject instance>
- TIME = <sqlite.main.DBAPITypeObject instance>
- TIMESTAMP = <sqlite.main.DBAPITypeObject instance>
- UNICODESTRING = <sqlite.main.DBAPITypeObject instance>
- __all__ = ['connect', 'IntegrityError', 'InterfaceError', 'InternalErr...
- __revision__ = '1.22'
- apilevel = '2.0'
- paramstyle = 'pyformat'
- threadsafety = 1
- version = '1.0.1'
- version_info = (1, 0, 1)
复制代码 |
|