1 unstable release
0.1.0 | Oct 29, 2022 |
---|
#2004 in Database interfaces
185KB
4.5K
SLoC
assembly-fdb
This crate contains the FDB database format of the assembly library.
Example Tools
This crate comes with a selection of example tools that can be installed using:
$ cargo install assembly-fdb --examples
fdb-columns
Show all columns and their types for some table:
$ cargo run --example fdb-columns <file> <table>
fdb-copy
Read an FDB file an create another one with the same content:
$ cargo run --example fdb-copy <src> <dest>
fdb-index
Show all rows for a single key in a table:
$ cargo run --example fdb-index <file> <table> <key>
fdb-stat
Print statistics on an FDB file:
$ cargo run --example fdb-stat <file>
fdb-tables
Show all tables in an FDB file
$ cargo run --example fdb-tables <file>
fdb-tree
Print the names of all tables and their columns
$ cargo run --example fdb-tree <file>
fdb-to-sqlite
Convert an FDB file to SQLite
$ cargo run --example fdb-to-sqlite <input fdb> <output sqlite>
sqlite-to-fdb
Convert an SQLite database to FDB
$ cargo run --example sqlite-to-fdb <input sqlite> <output fdb>
If your SQLite database was generated with an old version of fdb-to-sqlite
, it will be missing column type information. In this case, you can can first turn an existing FDB file into a template containing only the column names and types, and then supply this file to sqlite-to-fdb
:
$ cargo run --example template-fdb <input fdb> <output template fdb>
$ cargo run --example sqlite-to-fdb <input sqlite> <output fdb> --template <input template fdb>
Dependencies
~3.5–8MB
~209K SLoC