Crates.io | ods2sql |
lib.rs | ods2sql |
version | 0.4.0 |
source | src |
created_at | 2018-08-17 19:22:25.241611 |
updated_at | 2020-10-24 15:10:35.037748 |
description | Create a sqlite3 database from an ODS spreadsheet. |
homepage | https://gitlab.com/zetok/ods2sql |
repository | https://gitlab.com/zetok/ods2sql |
max_upload_size | |
id | 79990 |
size | 63,519 |
ods2sql creates SQLite database out of your ODS spreadsheet.
Details:
TEXT
SQLite
type.
true/false
) are converted to TEXT
type and
saved as true
/ false
text.NULL
SQLite value.SQLITE_LIMIT_VARIABLE_NUMBER
to 999 parameters in INSERT
statements.
SQLITE_MAX_COLUMN
to 2000 columns in a table.
LibreOffice has a hardcoded limit of 1024 columns.
It works for me, and if it eats your data that's your problem. Read the LICENSE.
Patches for bugs are welcome.
To create spreadsheet.sqlite
out of spreadsheet.ods
:
ods2sql spreadsheet.ods
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
In case of newer version, updating is almost like installing:
cargo install --force ods2sql
Licensed under AGPLv3+. For details, see LICENSE.