lbug 0.16.1

An in-process property graph database management system built for query speed and scalability
Documentation
#pragma once

#include "binder/bound_statement_visitor.h"
#include "binder/query/query_graph_label_analyzer.h"

namespace lbug {
namespace binder {

class MatchClausePatternLabelRewriter final : public BoundStatementVisitor {
public:
    explicit MatchClausePatternLabelRewriter(const main::ClientContext& clientContext)
        : analyzer{clientContext, false /* throwOnViolate */} {}

    void visitMatchUnsafe(BoundReadingClause& readingClause) override;

private:
    QueryGraphLabelAnalyzer analyzer;
};

} // namespace binder
} // namespace lbug