Crates.io | rucash |
lib.rs | rucash |
version | 0.5.0 |
source | src |
created_at | 2021-05-17 12:04:35.115895 |
updated_at | 2024-08-26 09:51:39.970832 |
description | read Gnucash file |
homepage | |
repository | https://github.com/z-Wind/rucash |
max_upload_size | |
id | 398548 |
size | 844,886 |
rucash provides a simple interface to GnuCash files stored in xml and SQL (sqlite3, PostgreSQL and MySQL).
use rucash::{Book, SQLiteQuery};
#[tokio::main]
async fn main() {
let query = SQLiteQuery::new("tests/db/sqlite/complex_sample.gnucash").unwrap();
let book = Book::new(query).await.unwrap();
let accounts = book.accounts();
}
# Cargo.toml
[dependencies]
rucash = { version = "0.5", features = [ "sqlite", "decimal" ] }
sqlite
: Add support for the self-contained SQLite database engine.postgresql
: Add support for the Postgres database server.mysql
: Add support for the MySQL database server.xml
: Add support for xml.decimal
: Add support for Decimal.