eventstore: cli "count" command.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user