assembly-fdb

Crates.ioassembly-fdb
lib.rsassembly-fdb
version0.1.0
sourcesrc
created_at2022-10-29 23:16:52.078883
updated_at2022-10-29 23:16:52.078883
descriptionTools to use an create FDB files
homepage
repositoryhttps://github.com/LUDevNet/Assembly/tree/main/modules/fdb
max_upload_size
id701249
size211,575
Daniel Seiler (Xiphoseer)

documentation

README

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> 
Commit count: 0

cargo fmt