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

Public Member Functions

void setup_tables ()
 
void drop_tables ()
 
 GrantSyntax ()
 
 ~GrantSyntax () override
 

Public Attributes

Users user_
 
Roles role_
 

Detailed Description

Definition at line 121 of file DBObjectPrivilegesTest.cpp.

Constructor & Destructor Documentation

◆ GrantSyntax()

GrantSyntax::GrantSyntax ( )
inlineexplicit

Definition at line 127 of file DBObjectPrivilegesTest.cpp.

References drop_tables().

127  {
128  drop_tables();
129  setup_tables();
130  }
+ Here is the call graph for this function:

◆ ~GrantSyntax()

GrantSyntax::~GrantSyntax ( )
inlineoverride

Definition at line 131 of file DBObjectPrivilegesTest.cpp.

References drop_tables().

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

Member Function Documentation

◆ drop_tables()

void GrantSyntax::drop_tables ( )
inline

Definition at line 126 of file DBObjectPrivilegesTest.cpp.

References run_ddl_statement().

126 { run_ddl_statement("DROP TABLE IF EXISTS tbl"); }
void run_ddl_statement(std::string ddl)
+ Here is the call graph for this function:

◆ setup_tables()

void GrantSyntax::setup_tables ( )
inline

Definition at line 125 of file DBObjectPrivilegesTest.cpp.

References run_ddl_statement().

125 { run_ddl_statement("CREATE TABLE IF NOT EXISTS tbl(i INTEGER)"); }
void run_ddl_statement(std::string ddl)
+ Here is the call graph for this function:

Member Data Documentation

◆ role_

Roles GrantSyntax::role_

Definition at line 123 of file DBObjectPrivilegesTest.cpp.

◆ user_

Users GrantSyntax::user_

Definition at line 122 of file DBObjectPrivilegesTest.cpp.


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