OmniSciDB  04ee39c94c
TableObject Struct Reference
+ Inheritance diagram for TableObject:
+ Collaboration diagram for TableObject:

Public Member Functions

void setup_tables ()
 
void drop_tables ()
 
 TableObject ()
 
 ~TableObject () override
 

Public Attributes

const std::string cquery1
 
const std::string cquery2
 
const std::string cquery3
 
const std::string dquery1 = "DROP TABLE IF EXISTS epl;"
 
const std::string dquery2 = "DROP TABLE IF EXISTS seriea;"
 
const std::string dquery3 = "DROP TABLE IF EXISTS bundesliga;"
 
Users user_
 
Roles role_
 

Detailed Description

Definition at line 144 of file DBObjectPrivilegesTest.cpp.

Constructor & Destructor Documentation

◆ TableObject()

TableObject::TableObject ( )
inlineexplicit

Definition at line 167 of file DBObjectPrivilegesTest.cpp.

References drop_tables().

167  {
168  drop_tables();
169  setup_tables();
170  }
+ Here is the call graph for this function:

◆ ~TableObject()

TableObject::~TableObject ( )
inlineoverride

Definition at line 171 of file DBObjectPrivilegesTest.cpp.

References drop_tables().

171 { drop_tables(); }
+ Here is the call graph for this function:

Member Function Documentation

◆ drop_tables()

void TableObject::drop_tables ( )
inline

Definition at line 162 of file DBObjectPrivilegesTest.cpp.

References run_ddl_statement().

162  {
166  }
const std::string dquery2
const std::string dquery1
const std::string dquery3
void run_ddl_statement(std::string ddl)
+ Here is the call graph for this function:

◆ setup_tables()

void TableObject::setup_tables ( )
inline

Definition at line 157 of file DBObjectPrivilegesTest.cpp.

References run_ddl_statement().

157  {
161  }
const std::string cquery3
const std::string cquery1
const std::string cquery2
void run_ddl_statement(std::string ddl)
+ Here is the call graph for this function:

Member Data Documentation

◆ cquery1

const std::string TableObject::cquery1
Initial value:
=
"CREATE TABLE IF NOT EXISTS epl(gp SMALLINT, won SMALLINT);"

Definition at line 145 of file DBObjectPrivilegesTest.cpp.

◆ cquery2

const std::string TableObject::cquery2
Initial value:
=
"CREATE TABLE IF NOT EXISTS seriea(gp SMALLINT, won SMALLINT);"

Definition at line 147 of file DBObjectPrivilegesTest.cpp.

◆ cquery3

const std::string TableObject::cquery3
Initial value:
=
"CREATE TABLE IF NOT EXISTS bundesliga(gp SMALLINT, won SMALLINT);"

Definition at line 149 of file DBObjectPrivilegesTest.cpp.

◆ dquery1

const std::string TableObject::dquery1 = "DROP TABLE IF EXISTS epl;"

Definition at line 151 of file DBObjectPrivilegesTest.cpp.

◆ dquery2

const std::string TableObject::dquery2 = "DROP TABLE IF EXISTS seriea;"

Definition at line 152 of file DBObjectPrivilegesTest.cpp.

◆ dquery3

const std::string TableObject::dquery3 = "DROP TABLE IF EXISTS bundesliga;"

Definition at line 153 of file DBObjectPrivilegesTest.cpp.

◆ role_

Roles TableObject::role_

Definition at line 155 of file DBObjectPrivilegesTest.cpp.

◆ user_

Users TableObject::user_

Definition at line 154 of file DBObjectPrivilegesTest.cpp.


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