ods2sql-0.4.0 is not a library.
ods2sql
ods2sql creates SQLite database out of your ODS spreadsheet.
Details:
- Cell values in the first row are used for SQLite column names.
- To simplify things, all data from spreadsheet is treated as
TEXTSQLite type.- Boolean cell values (e.g.
true/false) are converted toTEXTtype and saved astrue/falsetext.
- Boolean cell values (e.g.
- Empty cells/errors are inserted as
NULLSQLite value. - Maximum number of columns is limited by:
SQLITE_LIMIT_VARIABLE_NUMBERto 999 parameters inINSERTstatements.SQLITE_MAX_COLUMNto 2000 columns in a table.- LibreOffice has a hardcoded limit of 1024 columns.
Caution!
It works for me, and if it eats your data that's your problem. Read the LICENSE.
Patches for bugs are welcome.
Usage
To create spreadsheet.sqlite out of spreadsheet.ods:
Install
The easiest way is to use Cargo:
Don't forget to add place where Cargo installs binaries to your PATH for
convenience, e.g.:
Updating
In case of newer version, updating is almost like installing:
License
Licensed under AGPLv3+. For details, see LICENSE.