OmniSciDB  c07336695a
RegexCommandsMockClient Struct Reference
+ Inheritance diagram for RegexCommandsMockClient:
+ Collaboration diagram for RegexCommandsMockClient:

Public Member Functions

template<typename NAMES_RETURN_TYPE , typename SESSION_TYPE >
void get_users (NAMES_RETURN_TYPE &names_return, SESSION_TYPE const &session)
 
template<typename NAMES_RETURN_TYPE , typename SESSION_TYPE >
void get_physical_tables (NAMES_RETURN_TYPE &names_return, SESSION_TYPE const &session)
 
template<typename NAMES_RETURN_TYPE , typename SESSION_TYPE >
void get_views (NAMES_RETURN_TYPE &names_return, SESSION_TYPE const &session)
 
- Public Member Functions inherited from CoreMockClient
 MockMethod (connect) MockMethod(disconnect) MockMethod(switch_database) MockMethod(interrupt) MockMethod(sql_execute) MockMethod(get_tables) MockMethod(get_physical_tables) MockMethod(get_views) MockMethod(get_databases) MockMethod(get_users) MockMethod(set_execution_mode) MockMethod(get_version) MockMethod(get_memory) MockMethod(get_table_details) MockMethod(clear_gpu_memory) MockMethod(clear_cpu_memory) MockMethod(get_hardware_info) MockMethod(import_geo_table) MockMethod(set_table_epoch) MockMethod(set_table_epoch_by_name) RetValMockMethod(get_table_epoch
 

Detailed Description

Definition at line 323 of file OmniSQLCommandTest.cpp.

Member Function Documentation

◆ get_physical_tables()

template<typename NAMES_RETURN_TYPE , typename SESSION_TYPE >
void RegexCommandsMockClient::get_physical_tables ( NAMES_RETURN_TYPE &  names_return,
SESSION_TYPE const &  session 
)
inline

Definition at line 332 of file OmniSQLCommandTest.cpp.

332  {
333  names_return = {
334  "flights_2008_7M", "test", "test_x", "test_inner_x", "bar", "test_inner"};
335  }

◆ get_users()

template<typename NAMES_RETURN_TYPE , typename SESSION_TYPE >
void RegexCommandsMockClient::get_users ( NAMES_RETURN_TYPE &  names_return,
SESSION_TYPE const &  session 
)
inline

Definition at line 325 of file OmniSQLCommandTest.cpp.

325  {
326  // Fake this response from the server
327  names_return = {
328  "mapd", "homer", "marge", "bart", "lisa", "lisaSimpson", "sideshowbob"};
329  }

◆ get_views()

template<typename NAMES_RETURN_TYPE , typename SESSION_TYPE >
void RegexCommandsMockClient::get_views ( NAMES_RETURN_TYPE &  names_return,
SESSION_TYPE const &  session 
)
inline

Definition at line 338 of file OmniSQLCommandTest.cpp.

338  {
339  names_return = {"test_view", "cletus", "marge", "marge978", "marge1025"};
340  }

The documentation for this struct was generated from the following file: