Skip to content

Commit

Permalink
Add documentation for 'stats' and 'select'
Browse files Browse the repository at this point in the history
  • Loading branch information
Monster0506 authored and jwiegley committed Jul 8, 2024
1 parent a3c0521 commit 0b561c7
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions doc/ledger3.texi
Original file line number Diff line number Diff line change
Expand Up @@ -5600,13 +5600,45 @@ with Ledger 2.X.
@findex stats
@findex stat

@value{FIXME:UNDOCUMENTED}
@command{stats query}
Provide summary information about all the postings matching query.

@smallexample
$ ledger stats
@end smallexample

@itemize @bullet
@item
Time range of all matching postings
@item
Unique accounts
@item
Postings total
@item
Uncleared postings
@item
Days since last posting
@item
Posts in the last 7 days
@item
Posts in the last 30 days
@item
Posts this month
@end itemize

@node @command{select}, , @command{stats}, Reports about your Journals
@subsection @command{select}
@findex select

@value{FIXME:UNDOCUMENTED}
@command{select query}
The Command @command{select query} allows generation of SQL-like queries, e.g.,

List all postings matching the qurty.
This command allows to generate SQL-like queries, e.g.:

@smallexample
ledger select date,amount from posts where account=~/Income/
@end smallexample

@node Command-Line Syntax, Budgeting and Forecasting, Reporting Commands, Top
@chapter Command-Line Syntax
Expand Down

0 comments on commit 0b561c7

Please sign in to comment.