execute sqlite3 dot commands in python

gintare statkute g.statkute at gmail.com
Fri Feb 5 17:42:23 EST 2010


Does anybody know if it possible to execute sqlite3 dot commands in python?

dovanotas:/pages/links# python
Python 2.5.2 (r252:60911, Jan  4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3  .help
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'help'
>>>

the same with other commands:
.databases
.tables
http://www.sqlite.org/sqlite.html

regards,
gintare



More information about the Python-list mailing list