OmniSciDB  04ee39c94c
ParserWrapper.h File Reference

Classes used to wrap parser calls for calcite redirection. More...

#include <boost/regex.hpp>
#include <string>
#include <vector>
#include "Shared/ConfigResolve.h"
+ Include dependency graph for ParserWrapper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ParserWrapper
 

Enumerations

enum  CalciteDMLPathSelection : int { CalciteDMLPathSelection::Unsupported = 0, CalciteDMLPathSelection::OnlyUpdates = 1, CalciteDMLPathSelection::OnlyDeletes = 2, CalciteDMLPathSelection::UpdatesAndDeletes = 3 }
 

Functions

constexpr CalciteDMLPathSelection yield_dml_path_selector ()
 

Detailed Description

Classes used to wrap parser calls for calcite redirection.

Author
michael Copyright (c) 2016 MapD Technologies, Inc. All rights reserved.

Definition in file ParserWrapper.h.

Enumeration Type Documentation

◆ CalciteDMLPathSelection

enum CalciteDMLPathSelection : int
strong
Enumerator
Unsupported 
OnlyUpdates 
OnlyDeletes 
UpdatesAndDeletes 

Definition at line 33 of file ParserWrapper.h.

Function Documentation

◆ yield_dml_path_selector()

constexpr CalciteDMLPathSelection yield_dml_path_selector ( )
inline

Definition at line 40 of file ParserWrapper.h.

Referenced by ParserWrapper::isCalcitePermissableDml().

40  {
41  int selector = 0;
42  if (std::is_same<CalciteDeletePathSelector, PreprocessorTrue>::value) {
43  selector |= 0x02;
44  }
45  if (std::is_same<CalciteUpdatePathSelector, PreprocessorTrue>::value) {
46  selector |= 0x01;
47  }
48  return static_cast<CalciteDMLPathSelection>(selector);
49 }
CalciteDMLPathSelection
Definition: ParserWrapper.h:33
+ Here is the caller graph for this function: