lbug 0.16.1

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

#include "parser/statement.h"

namespace lbug {
namespace parser {

class GraphStatement : public Statement {
public:
    explicit GraphStatement(common::StatementType type, std::string graphName)
        : Statement{type}, graphName{std::move(graphName)} {}

    std::string getGraphName() const { return graphName; }

private:
    std::string graphName;
};

class CreateGraph final : public GraphStatement {
public:
    explicit CreateGraph(std::string graphName, bool isAny = false)
        : GraphStatement{common::StatementType::CREATE_GRAPH, std::move(graphName)}, isAny{isAny} {}
    bool isAnyGraph() const { return isAny; }

private:
    bool isAny = false;
};

class UseGraph final : public GraphStatement {
public:
    explicit UseGraph(std::string graphName)
        : GraphStatement{common::StatementType::USE_GRAPH, std::move(graphName)} {}
};

} // namespace parser
} // namespace lbug