View Single Post
Old 07-06-2010, 09:17 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,545
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
if you can write sql queries it should be easy. Just do this:

Code:
calibre-debug -c "from calibre.library import db; db = db(); db.conn.execute('the sql query'); db.conn.commit()"
kovidgoyal is offline   Reply With Quote