mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Data Structures | Namespaces | Functions
mutable.hpp File Reference
#include <mutable/mutable-config.hpp>
#include <filesystem>
#include <mutable/backend/Backend.hpp>
#include <mutable/catalog/CardinalityEstimator.hpp>
#include <mutable/catalog/Catalog.hpp>
#include <mutable/catalog/CostFunction.hpp>
#include <mutable/catalog/DatabaseCommand.hpp>
#include <mutable/catalog/Schema.hpp>
#include <mutable/catalog/Type.hpp>
#include <mutable/IR/CNF.hpp>
#include <mutable/IR/Operator.hpp>
#include <mutable/IR/Optimizer.hpp>
#include <mutable/IR/PlanEnumerator.hpp>
#include <mutable/IR/PlanTable.hpp>
#include <mutable/IR/QueryGraph.hpp>
#include <mutable/IR/Tuple.hpp>
#include <mutable/lex/Token.hpp>
#include <mutable/lex/TokenType.hpp>
#include <mutable/parse/AST.hpp>
#include <mutable/storage/DataLayout.hpp>
#include <mutable/storage/Store.hpp>
#include <mutable/util/ADT.hpp>
#include <mutable/util/ArgParser.hpp>
#include <mutable/util/Diagnostic.hpp>
#include <mutable/util/DotTool.hpp>
#include <mutable/util/exception.hpp>
#include <mutable/util/fn.hpp>
#include <mutable/util/macro.hpp>
#include <mutable/util/memory.hpp>
#include <mutable/util/Pool.hpp>
#include <mutable/util/Position.hpp>
#include <mutable/util/Timer.hpp>
#include <mutable/version.hpp>
Include dependency graph for mutable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  m::StoreWriter
 This class provides direct write access to the contents of a Store. More...
 

Namespaces

namespace  m
 

‍mutable namespace


 

Functions

bool M_EXPORT m::init (void)
 Initializes the mu*t*able library.
 
std::unique_ptr< ast::Stmt > M_EXPORT m::statement_from_string (Diagnostic &diag, const std::string &str)
 Use lexer, parser, and semantic analysis to create a Stmt from str.
 
std::unique_ptr< ast::Instruction > M_EXPORT m::instruction_from_string (Diagnostic &diag, const std::string &str)
 Use lexer and parser to create an Instruction from str.
 
std::unique_ptr< DatabaseCommand > M_EXPORT m::command_from_string (Diagnostic &diag, const std::string &str)
 Create a DatabaseCommand from str.
 
void M_EXPORT m::execute_statement (Diagnostic &diag, const ast::Stmt &stmt, bool is_stdin=false)
 Optimizes and executes the given Stmt.
 
void M_EXPORT m::process_stream (std::istream &in, const char *filename, Diagnostic diag)
 Extracts and executes statements from given stream.
 
void M_EXPORT m::execute_instruction (Diagnostic &diag, const ast::Instruction &instruction)
 Executes the given Instruction.
 
std::unique_ptr< Consumer > M_EXPORT m::logical_plan_from_statement (Diagnostic &diag, const ast::SelectStmt &stmt, std::unique_ptr< Consumer > consumer)
 Optimizes the given SelectStmt.
 
std::unique_ptr< MatchBase > M_EXPORT m::physical_plan_from_logical_plan (Diagnostic &diag, const Consumer &logical_plan)
 Computes a physical plan from the given logical plan.
 
std::unique_ptr< MatchBase > M_EXPORT m::physical_plan_from_logical_plan (Diagnostic &diag, const Consumer &logical_plan, const Backend &backend)
 Computes a physical plan from the given logical_plan.
 
void M_EXPORT m::execute_physical_plan (Diagnostic &diag, const MatchBase &physical_plan)
 Executes the given physical plan.
 
void M_EXPORT m::execute_physical_plan (Diagnostic &diag, const MatchBase &physical_plan, const Backend &backend)
 Executes the given physical plan on backend.
 
void M_EXPORT m::execute_query (Diagnostic &diag, const ast::SelectStmt &stmt, std::unique_ptr< Consumer > consumer)
 Optimizes and executes the given SelectStmt.
 
void M_EXPORT m::execute_query (Diagnostic &diag, const ast::SelectStmt &stmt, std::unique_ptr< Consumer > consumer, const Backend &backend)
 Optimizes and executes the given SelectStmt on backend.
 
void M_EXPORT m::load_from_CSV (Diagnostic &diag, Table &table, const std::filesystem::path &path, std::size_t num_rows=std::numeric_limits< std::size_t >::max(), bool has_header=false, bool skip_header=false)
 Loads a CSV file into a Table.
 
void M_EXPORT m::execute_file (Diagnostic &diag, const std::filesystem::path &path)
 Execute the SQL file at path.