Skip to content

docs: correct dataset drop syntax documentation - #235

Open
0xThiebaut wants to merge 1 commit into
CERT-Polska:masterfrom
0xThiebaut:dataset-drop-syntax
Open

0xThiebaut wants to merge 1 commit into
CERT-Polska:masterfrom
0xThiebaut:dataset-drop-syntax

Conversation

@0xThiebaut

Copy link
Copy Markdown

The dataset drop syntax does not take a tag argument (see snippet). This commit removes this syntax error from the documentation to align with the ursadb DSL.

if (n.is<dataset>()) {
std::string dataset = transform_string(*n.children[0]);
if (n.children[1]->is<taint_token>()) {
std::string taint = transform_string(*n.children[2]);
return Command(TaintCommand(dataset, TaintMode::Add, taint));
}
if (n.children[1]->is<untaint_token>()) {
std::string taint = transform_string(*n.children[2]);
return Command(TaintCommand(dataset, TaintMode::Clear, taint));
}
if (n.children[1]->is<drop_token>()) {
return Command(DatasetDropCommand(dataset));
}
throw std::runtime_error("Unknown dataset operation node");
}

The dataset drop syntax does not take a tag argument.
This commit removes this syntax error from the documentation to align with the ursadb DSL.
@0xThiebaut 0xThiebaut changed the title fix: correct dataset drop syntax documentation docs: correct dataset drop syntax documentation Sep 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant