mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Options.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <mutable/mutable-config.hpp>
4#include <cstdint>
5
6
7namespace m {
8
11struct M_EXPORT Options
12{
15 {
19 };
20
21 /*----- Help -----------------------------------------------------------------------------------------------------*/
31
32 /*----- Shell configuration --------------------------------------------------------------------------------------*/
35 bool quiet;
36
37 /*----- Additional outputs ---------------------------------------------------------------------------------------*/
38 bool times;
40 bool echo;
41 bool ast;
42 bool astdot;
43 bool graph;
46 bool plan;
47 bool plandot;
49
51 bool dryrun;
52
55
57 PlanTableType plan_table_type = PT_auto;
58
59 /*----- Database configuration. ----------------------------------------------------------------------------------*/
62
65
67 const char *plugins;
68
69 private:
70 Options() = default;
71 public:
72 Options(const Options&) = delete;
73 Options & operator=(const Options&) = delete;
74
76 static Options & Get();
77};
78
79}
‍mutable namespace
Definition: Backend.hpp:10
Singleton class representing options provided as command line argument to the binaries.
Definition: Options.hpp:12
bool astdot
Definition: Options.hpp:42
bool list_cardinality_estimators
Definition: Options.hpp:25
bool list_schedulers
Definition: Options.hpp:29
bool dryrun
If true, do not pass the query to the backend for execution.
Definition: Options.hpp:51
bool times
Definition: Options.hpp:38
bool plan
Definition: Options.hpp:46
bool train_cost_models
If true, run the procedure to train cost models for query building blocks at startup.
Definition: Options.hpp:64
bool list_data_layouts
Definition: Options.hpp:24
const char * injected_cardinalities_file
Definition: Options.hpp:60
bool statistics
Definition: Options.hpp:39
bool plandot
Definition: Options.hpp:47
bool echo
Definition: Options.hpp:40
bool show_version
Definition: Options.hpp:23
Options()=default
const char * output_partial_plans_file
Definition: Options.hpp:61
bool list_backends
Definition: Options.hpp:27
bool show_help
Definition: Options.hpp:22
bool list_table_properties
Definition: Options.hpp:30
bool physplan
Definition: Options.hpp:48
bool has_color
Definition: Options.hpp:33
bool list_plan_enumerators
Definition: Options.hpp:26
bool list_cost_functions
Definition: Options.hpp:28
bool benchmark
If true, the results of queries are dropped and not passed back to the user.
Definition: Options.hpp:54
Options(const Options &)=delete
PlanTableType
Type of plan tables available for query optimization.
Definition: Options.hpp:15
@ PT_LargeAndSparse
Definition: Options.hpp:18
@ PT_SmallOrDense
Definition: Options.hpp:17
const char * plugins
A comma seperated list of libraries that are loaded dynamically.
Definition: Options.hpp:67
Options & operator=(const Options &)=delete
bool show_prompt
Definition: Options.hpp:34
bool graph
Definition: Options.hpp:43
bool graphdot
Definition: Options.hpp:44
bool quiet
Definition: Options.hpp:35
bool ast
Definition: Options.hpp:41
bool graph2sql
Definition: Options.hpp:45