View Single Post
Old 07-06-2010, 10: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,645
Karma: 28549046
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 online now   Reply With Quote