z-Wind / rucash

read Gnucash file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rucash

The Rust for Gnucash


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

Example

#[cfg(feature = "sqlite")]
{
    use rucash::SqliteBook;

    #[tokio::main]
    async fn main() {
        let book = SqliteBook::new("sqlite://tests/db/sqlite/complex_sample.gnucash?mode=ro").await.unwrap();
        let accounts = book.accounts();
    }
}

Install

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

Cargo Feature Flags

  • sqlite: Add support for the self-contained SQLite database engine.
  • postgres: 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.

About

read Gnucash file


Languages

Language:Rust 99.8%Language:Makefile 0.2%