DCL 3.7.4
Loading...
Searching...
No Matches
PqModuleMain.cpp File Reference
#include <dcl/Config.h>
#include <string.h>
#include <locale.h>
#include <dcl/_stdlib.h>
#include <libpq-fe.h>
#include <dcl/Object.h>
#include <dcl/SQLCore.h>
#include "PqConnection.h"

Go to the source code of this file.

Macros

#define __TRACE_THIS   0
#define __DCL_TRACE0_N(fmt)
#define __DCL_TRACE1_N(fmt, arg)
#define __DCL_TRACE2_N(fmt, arg1, arg2)
#define __DCL_TRACE3_N(fmt, arg1, arg2, arg3)
#define __DCL_TRACE4_N(fmt, arg1, arg2, arg3, arg4)

Functions

SQL::ConnectionCreateConnectionInstance ()
bool ModuleInitialize ()
bool ModuleCleanup ()

Variables

DCL_DSO_EXPORT SQL::DRIVER_MODULE DCL_DSO_ENTRY_POINT

Macro Definition Documentation

◆ __DCL_TRACE0_N

#define __DCL_TRACE0_N ( fmt)

Definition at line 30 of file PqModuleMain.cpp.

◆ __DCL_TRACE1_N

#define __DCL_TRACE1_N ( fmt,
arg )

Definition at line 31 of file PqModuleMain.cpp.

◆ __DCL_TRACE2_N

#define __DCL_TRACE2_N ( fmt,
arg1,
arg2 )

Definition at line 32 of file PqModuleMain.cpp.

◆ __DCL_TRACE3_N

#define __DCL_TRACE3_N ( fmt,
arg1,
arg2,
arg3 )

Definition at line 33 of file PqModuleMain.cpp.

◆ __DCL_TRACE4_N

#define __DCL_TRACE4_N ( fmt,
arg1,
arg2,
arg3,
arg4 )

Definition at line 34 of file PqModuleMain.cpp.

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 22 of file PqModuleMain.cpp.

Function Documentation

◆ CreateConnectionInstance()

SQL::Connection * CreateConnectionInstance ( )

Definition at line 66 of file PqModuleMain.cpp.

67{
68 return new PqConnection(_serverTitle);
69}

◆ ModuleCleanup()

bool ModuleCleanup ( )

Definition at line 76 of file PqModuleMain.cpp.

77{
78 return true;
79}

◆ ModuleInitialize()

bool ModuleInitialize ( )

Definition at line 71 of file PqModuleMain.cpp.

72{
73 return true;
74}

Variable Documentation

◆ DCL_DSO_ENTRY_POINT

DCL_DSO_EXPORT SQL::DRIVER_MODULE DCL_DSO_ENTRY_POINT
Initial value:
=
{
__T("DCL SQL Adapter for PostgreSQL Database Server"),
_serverTitle,
}
#define DCL_BUILD_FLAG
Definition Config.h:362
#define DCL_SQL_DRIVER_MODULE
Definition Config.h:353
bool ModuleInitialize()
bool ModuleCleanup()
SQL::Connection * CreateConnectionInstance()
#define __T(str)
Definition Object.h:60
#define DCL_SQL_VERSION
#define __BUILD_TIMESTAMP__
#define DCL_VERSION
#define DCL_SQL_VERSION_STRING

Definition at line 84 of file PqModuleMain.cpp.

85{
86 // DCL common members
87 sizeof(SQL::DRIVER_MODULE), // structure size
91 DCL_SQL_DRIVER_MODULE, // module type
92 __T("DCL SQL Adapter for PostgreSQL Database Server"),
93
94 // private members
96 _serverTitle,
101};