Hi all,
which could be the preferable way to export some data from an internal sqlite table?
A bit of context. An app stores some data in one or more tables while the DB is initialized in DirInternal. A SELECT statement is needed to extract only some data. Columns are of different data types (mainly INTEGER and TEXT), but Text columns can contain multiline text (i.e. CRLF separates those few rows saved in a given Text field). BTW, multiline text comes from a Preference Dialog Multiline input box. I doubt the exported data would count an high number of records, but I could split it in several files if needed.
Given the above, would you go CSV, JSON or other format?
The resulting export should be attached to an email.
On the receiving end, a companion app will read the file and INSERT records in a dedicated table modeled similar to the exporting one.
ps: my first thought went to the command ".dump" but I guess there's no way to call it given the above scenario, right?
Thank you for your hints and comments
udg
which could be the preferable way to export some data from an internal sqlite table?
A bit of context. An app stores some data in one or more tables while the DB is initialized in DirInternal. A SELECT statement is needed to extract only some data. Columns are of different data types (mainly INTEGER and TEXT), but Text columns can contain multiline text (i.e. CRLF separates those few rows saved in a given Text field). BTW, multiline text comes from a Preference Dialog Multiline input box. I doubt the exported data would count an high number of records, but I could split it in several files if needed.
Given the above, would you go CSV, JSON or other format?
The resulting export should be attached to an email.
On the receiving end, a companion app will read the file and INSERT records in a dedicated table modeled similar to the exporting one.
ps: my first thought went to the command ".dump" but I guess there's no way to call it given the above scenario, right?
Thank you for your hints and comments
udg