View Single Post
Old 10-06-2016, 06:33 AM   #749
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Cex View Post
I would appreciate some guidance on what changes between 'sqlite3' and 'apsw' besides 'next' instead of 'fetchone', and 'Connection' instead of 'connect'.
For your, reference if you ever need to do an sqlite3 to apsw conversion, the two other things I can think of are:

- cursor.commit becomes cursor.execute("commit"). But removed all these as there were no actual transactions.

- If there is only one column in a select statement, the result will be a value rather than an array.

Last edited by davidfor; 10-06-2016 at 06:33 AM. Reason: Spelling.
davidfor is offline