taco-db  0.1.0
Classes | Namespaces | Macros
Database.h File Reference

This file defines the global database class and its global instance. More...

#include "base/tdb_base.h"

Go to the source code of this file.

Classes

class  taco::Database
 The class for a database instance. More...
 

Namespaces

 taco
 

Macros

#define g_bufman   g_db->buf_manager()
 Shorthand for g_db->buf_manager() More...
 
#define g_fileman   g_db->file_manager()
 Shorthand for g_db->file_manager() More...
 
#define g_catcache   g_db->catcache()
 Shorthand for g_db->catcache() More...
 
#define g_actsch   g_db->actres_schema()
 Shorthand for g_db->actres_sch() More...
 

Detailed Description

This file defines the global database class and its global instance.

As almost every source file in this project includes dbmain/Datbase.h indirectly from tdb.h, we must not include any header file except tdb_base.h. We use forward declaration of needed classes instead.

Macro Definition Documentation

◆ g_actsch

#define g_actsch   g_db->actres_schema()

Shorthand for g_db->actres_sch()

◆ g_bufman

#define g_bufman   g_db->buf_manager()

Shorthand for g_db->buf_manager()

◆ g_catcache

#define g_catcache   g_db->catcache()

Shorthand for g_db->catcache()

◆ g_fileman

#define g_fileman   g_db->file_manager()

Shorthand for g_db->file_manager()