Add grammar for dump query
Summary: Defined Antlr4 grammar for `DUMP DATABASE` query. Defined DUMP permission in auth module. Reviewers: teon.banek, mferencevic Reviewed By: teon.banek, mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2077
This commit is contained in:
@@ -2911,4 +2911,12 @@ TEST_P(CypherMainVisitorTest, RegexMatch) {
|
||||
}
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(hicpp-special-member-functions)
|
||||
TEST_P(CypherMainVisitorTest, DumpDatabase) {
|
||||
auto &ast_generator = *GetParam();
|
||||
auto *query =
|
||||
dynamic_cast<DumpQuery *>(ast_generator.ParseQuery("DUMP DATABASE"));
|
||||
ASSERT_TRUE(query);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user