Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
SoftwareAndServices::Library::Database::SqlDatabase Class Reference

A table. More...

#include <SaS/Sql/Types.hpp>

+ Inheritance diagram for SoftwareAndServices::Library::Database::SqlDatabase:
+ Collaboration diagram for SoftwareAndServices::Library::Database::SqlDatabase:

Public Member Functions

 SqlDatabase ()
 SqlDatabase - Default Constructor. More...
 
virtual ~SqlDatabase ()
 SqlDatabase - Destructor. More...
 
void Add (SqlTable *Tbl)
 Add a TABLE. More...
 
void Add (SqlTypeTable *Type)
 Add a TYPE table. More...
 
void Add (SqlFunction *Func)
 Add a FUNCTION. More...
 
const char * Comment () const
 
void Comment (const char *DbComment)
 Set the database comment. More...
 
std::vector< SqlFunction * > * Functions () const
 Get the list of FUNCTIONs. More...
 
const char * Name () const
 
void Name (const char *DbName)
 Set the database name. More...
 
std::vector< SqlTable * > * Tables () const
 Get the list of tables. More...
 
std::vector< SqlTypeTable * > * TypeTables () const
 Get the list of TYPE tables. More...
 

Detailed Description

A table.

Definition at line 48 of file SqlDatabase.hpp.

Constructor & Destructor Documentation

◆ SqlDatabase()

SoftwareAndServices::Library::Database::SqlDatabase::SqlDatabase ( )

SqlDatabase - Default Constructor.

◆ ~SqlDatabase()

virtual SoftwareAndServices::Library::Database::SqlDatabase::~SqlDatabase ( )
virtual

SqlDatabase - Destructor.

Member Function Documentation

◆ Add() [1/3]

void SoftwareAndServices::Library::Database::SqlDatabase::Add ( SqlTable Tbl)

Add a TABLE.

Parameters
TblThe table to add to this database.

◆ Add() [2/3]

void SoftwareAndServices::Library::Database::SqlDatabase::Add ( SqlTypeTable Type)

Add a TYPE table.

Parameters
TypeThe table to add to this database.

◆ Add() [3/3]

void SoftwareAndServices::Library::Database::SqlDatabase::Add ( SqlFunction Func)

Add a FUNCTION.

Parameters
FuncThe table to add to this database.

◆ Comment() [1/2]

const char* SoftwareAndServices::Library::Database::SqlDatabase::Comment ( ) const
Returns
The comment for the database, or NULL when not set.

◆ Comment() [2/2]

void SoftwareAndServices::Library::Database::SqlDatabase::Comment ( const char *  DbComment)

Set the database comment.

Parameters
DbCommentThe comment for the database.

◆ Functions()

std::vector<SqlFunction*>* SoftwareAndServices::Library::Database::SqlDatabase::Functions ( ) const

Get the list of FUNCTIONs.

Returns
A std::vector<SqlFunction*> of tables.

◆ Name() [1/2]

const char* SoftwareAndServices::Library::Database::SqlDatabase::Name ( ) const
Returns
The name of the database, or NULL when not set.

◆ Name() [2/2]

void SoftwareAndServices::Library::Database::SqlDatabase::Name ( const char *  DbName)

Set the database name.

Parameters
DbNameThe name of the database.

◆ Tables()

std::vector<SqlTable*>* SoftwareAndServices::Library::Database::SqlDatabase::Tables ( ) const

Get the list of tables.

Returns
A std::vector<SqlTable*> of tables.

◆ TypeTables()

std::vector<SqlTypeTable*>* SoftwareAndServices::Library::Database::SqlDatabase::TypeTables ( ) const

Get the list of TYPE tables.

Returns
A std::vector<SqlTypeTable*> of tables.

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