generalise replaceable and ephemeral events

This commit is contained in:
Doug Hoyte
2023-02-25 01:26:27 -05:00
parent e4e79af121
commit a4549883eb
7 changed files with 109 additions and 35 deletions

View File

@ -9,7 +9,7 @@
static const char USAGE[] =
R"(
Usage:
export [--since=<since>] [--until=<until>] [--reverse] [--include-ephemeral]
export [--since=<since>] [--until=<until>] [--reverse]
)";
@ -19,7 +19,6 @@ void cmd_export(const std::vector<std::string> &subArgs) {
uint64_t since = 0, until = MAX_U64;
if (args["--since"]) since = args["--since"].asLong();
if (args["--until"]) until = args["--until"].asLong();
bool includeEphemeral = args["--include-ephemeral"].asBool();
bool reverse = args["--reverse"].asBool();
Decompressor decomp;
@ -49,8 +48,6 @@ void cmd_export(const std::vector<std::string> &subArgs) {
return true;
}
if (!includeEphemeral && isEphemeralEvent(view.flat_nested()->kind())) return true;
std::cout << getEventJson(txn, decomp, view.primaryKeyId) << "\n";
return true;