ods2sql 0.4.0

Create a sqlite3 database from an ODS spreadsheet.
ods2sql-0.4.0 is not a library.

ods2sql

license build status

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 TEXT SQLite type.
    • Boolean cell values (e.g. true/false) are converted to TEXT type and saved as true / false text.
  • Empty cells/errors are inserted as NULL SQLite value.
  • Maximum number of columns is limited by:

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:

ods2sql spreadsheet.ods

Install

The easiest way is to use Cargo:

cargo install ods2sql

Don't forget to add place where Cargo installs binaries to your PATH for convenience, e.g.:

echo 'export PATH="$PATH:$HOME/.cargo/bin"' >> ~/.bashrc
source ~/.bashrc

Updating

In case of newer version, updating is almost like installing:

cargo install --force ods2sql

License

Licensed under AGPLv3+. For details, see LICENSE.