A query is a composition of search criteria, which can be used to match postings, transactions, accounts and more.
Constructors
Anyalways match
Nonenever match data queries (in "standard" order, roughly as they appear in a transaction)
Date DateSpanmatch primary dates in this date span
Date2 DateSpanmatch secondary dates in this date span
StatusQ Statusmatch this txn/posting status
Code Regexpmatch txn codes infix-matched by this regexp
Desc Regexpmatch txn descriptions infix-matched by this regexp
Tag Regexp (Maybe Regexp)match if a tag's name, and optionally its value, is infix-matched by the respective regexps
Acct Regexpmatch account names infix-matched by this regexp
Type [AccountType]match accounts whose type is one of these (or with no types, any account)
Depth Intmatch if account depth is less than or equal to this value (or, sometimes used as a display option)
DepthAcct Regexp Intmatch if the account matches and account depth is less than or equal to this value (usually used as a display option)
Real Boolmatch postings with this "realness" value
Amt OrdPlus Quantitymatch if the amount's numeric quantity is less thangreater thanequal to/unsignedly equal to some value
Sym Regexpmatch if the commodity symbol is fully-matched by this regexp compound queries (expr:)
Not Querynegate this match
And [Query]match if all of these match
Or [Query]match if any of these match compound queries for transactions (any:, all:) If used in a non transaction-matching context, these are equivalent to And.
AnyPosting [Query]match if any one posting is matched by all of these
AllPostings [Query]match if all of one or more postings are matched by all of these