I know this may be a bit late, but if someone else is looking for this and sees this question, the best answer would be to export the database to a CSV file (comma delimited).
sqlite3 has a function just for this, called a "quote". You can read about it here:
http://www.sqlite.org/lang_corefunc.html#quote
Example:
create table t1 (c1 char, c2 int);
insert into the values ββt1 ('a hi', 1);
insert into the values ββof t1 ('b hello', 2);
select a quote (a) || ',' || b from t1;
this will return: 'a hi', 1 'b hello', 2
There are other ways to use the quote function, but it really depends on your data and how you want to use it.
source share