eventstore: cli "count" command.

This commit is contained in:
fiatjaf
2025-08-22 14:08:24 -03:00
parent 3eaf02ff6a
commit 6737398375
3 changed files with 45 additions and 2 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ var query = &cli.Command{
Name: "query",
ArgsUsage: "[<filter-json>]",
Usage: "queries an eventstore for events, takes a filter as argument",
Description: "applies the filter to the currently open eventstore, returning up to a million events.\n takes either a filter as an argument or reads a stream of filters from stdin.",
Description: "applies the filter to the currently open eventstore, returning up to 10 million events.\n takes either a filter as an argument or reads a stream of filters from stdin.",
Action: func(ctx context.Context, c *cli.Command) error {
hasError := false
for line := range getStdinLinesOrFirstArgument(c) {
@@ -25,7 +25,7 @@ var query = &cli.Command{
continue
}
for evt := range db.QueryEvents(filter, 1_000_000) {
for evt := range db.QueryEvents(filter, 10_000_000) {
fmt.Println(evt)
}
}