Re: [SQLObject] removing a unique constraint
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Timothy W. G. <tim...@si...> - 2011-07-13 00:17:56
|
Thanks. That all sounds like what I am looking for. I'm using sqlite3 for my backend (with Windows 7, python 2.7, wxpython 2.9, SQLObject-1.0.0-py2.6). Tim > Plain old SQL and perhaps tricky one. Can I ask - what backend > do you use, MySQL? >> Can I issue SQL commands to my database through >> SQLObject? Thanks again for your help. > Yes, from a script or even from python interactive prompt. Just open > your connection the way you do in your programs and call > connection.query() or connection.queryAll(). Examples: > > from sqlobject import connectionForURI > connection = connectionForURI('mysql://...') > print connection.queryAll('SHOW INDEX FOR sentence') > connection.query('DROP INDEX sentence_video_unique') > > Oleg. |