https://github.com/shanebarnes/gnucash-sql
SQLite Queries for use with GnuCash
https://github.com/shanebarnes/gnucash-sql
analytics budget finance gnucash go sql sqlite tracker
Last synced: 16 days ago
JSON representation
SQLite Queries for use with GnuCash
- Host: GitHub
- URL: https://github.com/shanebarnes/gnucash-sql
- Owner: shanebarnes
- License: bsd-3-clause
- Created: 2021-01-02T05:08:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T13:34:34.000Z (about 3 years ago)
- Last Synced: 2025-10-30T19:47:21.922Z (6 months ago)
- Topics: analytics, budget, finance, gnucash, go, sql, sqlite, tracker
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gnucash-sql
Run SQL queries quickly and effortlessly against your GnuCash SQLite database
## Build Instructions
### Unix
```
$ git clone https://github.com/shanebarnes/gnucash-sql.git
$ cd gnucash-sql
$ ./build/build.sh
```
### Windows
```
> git clone https://github.com/shanebarnes/gnucash-sql.git
> cd gnucash-sql
> scripts\build.cmd
```
## Examples
```
# Run with defaults (get all accounts report for the current year)
./bin/report -db sqlite3.gnucash
# Get yearly expense report
./bin/report -db sqlite3.gnucash -account expense -yearof 2021
# Get quarterly income report
./bin/report -db sqlite3.gnucash -account income -quarterof 2021-1
# Get monthly accounts report
./bin/report -db sqlite3.gnucash -monthof 2021-1
# Get weekly accounts report
./bin/report -db sqlite3.gnucash -weekof 2021-1
# Get accounts report for a specific period of time
./bin/report -db sqlite3.gnucash -start 2021-1-2 -end 2021-1-16
# Get accounts report for since a specific start date
./bin/report -db sqlite3.gnucash -start 2021-1-2
# Get accounts report by searching for a specific name
./bin/report -db sqlite3.gnucash -yearof 2020 -name utilities
# Get accounts report for the last decade grouped by year
./bin/report -db sqlite3.gnucash -start 2013 -groupby year
```