summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonster0506 <91501317+Monster0506@users.noreply.github.com>2024-05-20 22:01:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2024-07-08 10:11:25 -0700
commit0b561c7304ec82807212bd070fc6a1684c67607b (patch)
tree519d77615c932f77920a942e4a08a6f1b70ecb4c
parenta3c052111824c4da5c8e565f9a8669707df7a84a (diff)
downloadfork-ledger-0b561c7304ec82807212bd070fc6a1684c67607b.tar.gz
fork-ledger-0b561c7304ec82807212bd070fc6a1684c67607b.tar.bz2
fork-ledger-0b561c7304ec82807212bd070fc6a1684c67607b.zip
Add documentation for 'stats' and 'select'
-rw-r--r--doc/ledger3.texi36
1 files changed, 34 insertions, 2 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index 0759e2cb..e9cadefb 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -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