ods2sql

Crates.ioods2sql
lib.rsods2sql
version0.4.0
sourcesrc
created_at2018-08-17 19:22:25.241611
updated_at2020-10-24 15:10:35.037748
descriptionCreate a sqlite3 database from an ODS spreadsheet.
homepagehttps://gitlab.com/zetok/ods2sql
repositoryhttps://gitlab.com/zetok/ods2sql
max_upload_size
id79990
size63,519
(zetok)

documentation

README

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.

Commit count: 32

cargo fmt