Crates.io | assembly-fdb |
lib.rs | assembly-fdb |
version | 0.1.0 |
source | src |
created_at | 2022-10-29 23:16:52.078883 |
updated_at | 2022-10-29 23:16:52.078883 |
description | Tools to use an create FDB files |
homepage | |
repository | https://github.com/LUDevNet/Assembly/tree/main/modules/fdb |
max_upload_size | |
id | 701249 |
size | 211,575 |
This crate contains the FDB database format of the assembly library.
This crate comes with a selection of example tools that can be installed using:
$ cargo install assembly-fdb --examples
Show all columns and their types for some table:
$ cargo run --example fdb-columns <file> <table>
Read an FDB file an create another one with the same content:
$ cargo run --example fdb-copy <src> <dest>
Show all rows for a single key in a table:
$ cargo run --example fdb-index <file> <table> <key>
Print statistics on an FDB file:
$ cargo run --example fdb-stat <file>
Show all tables in an FDB file
$ cargo run --example fdb-tables <file>
Print the names of all tables and their columns
$ cargo run --example fdb-tree <file>
Convert an FDB file to SQLite
$ cargo run --example fdb-to-sqlite <input fdb> <output sqlite>
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>