InfiniSQL  v0.1.2-alpha
Massive Scale Transaction Processing
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Schema.h File Reference

Schema class. Contains tables (fields (indices)). One schemata per domain. Corresponds to tablespace or database on other RDBMS platforms. More...

#include "gch.h"
#include "Table.h"
Include dependency graph for Schema.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Schema
 Schema object. More...
 

Functions

template<typename T >
void createSchema (T servent)
 creates Schema object, in lieu of constructor More...
 

Detailed Description

Schema class. Contains tables (fields (indices)). One schemata per domain. Corresponds to tablespace or database on other RDBMS platforms.

Author
Mark Travis mtrav.nosp@m.is15.nosp@m.432+s.nosp@m.rc@g.nosp@m.mail..nosp@m.com
Date
Tue Dec 17 13:46:55 2013

Definition in file Schema.h.

Function Documentation

template<typename T >
void createSchema ( servent)

creates Schema object, in lieu of constructor

Parameters
servent

Definition at line 87 of file Schema.h.

References BUILTIN_STATUS_NOTOK, BUILTIN_STATUS_OK, Schema::domainid, MessageUserSchema::userschema_s::domainid, and MessageUserSchema::userschemaStruct.

Referenced by Engine::createschema(), UserSchemaMgr::createschema(), and TransactionAgent::TAcreateschema().

88 {
89  class MessageUserSchema &msgref =
90  *(class MessageUserSchema *)servent->msgrcv;
91 
92  if (servent->domainidsToSchemata.count(msgref.userschemaStruct.domainid))
93  {
94  servent->status = BUILTIN_STATUS_NOTOK;
95  }
96  else
97  {
98  class Schema *sptr = new class Schema(msgref.userschemaStruct.domainid);
99  servent->domainidsToSchemata[msgref.userschemaStruct.domainid] = sptr;
100  servent->status = BUILTIN_STATUS_OK;
101  }
102 }

Here is the caller graph for this function: