Skip to content

z-Wind/rucash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4a3af39 · Nov 19, 2024

History

54 Commits
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Feb 25, 2024
Aug 22, 2024
Aug 22, 2024
Feb 25, 2024
Feb 25, 2024
Nov 19, 2024
Aug 22, 2024
Aug 22, 2024

Repository files navigation

rucash

The Rust for Gnucash


rucash provides a simple interface to GnuCash files stored in xml and SQL (sqlite3, PostgreSQL and MySQL).

Example

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();
}

Install

# Cargo.toml
[dependencies]
rucash = { version = "0.5", features = [ "sqlite", "decimal" ] }

Cargo Feature Flags

  • 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.