| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
TePGConnection Class Reference

`#include <TePGInterface.h>`

List of all members.

## Public Member Functions

| TePGConnection (const string &str_connection="")
virtual | ~TePGConnection ()
bool | open (const string &str_connection)
bool | open (PGconn *conn)
bool | state (void) const
void | close (void)
const char * | dbname (void) const
const char * | err_msg (void) const
PGresult * | exec (const string &str_qry)
int | exec_cmd (const string &str_qry)
Oid | getOID (void) const
PGconn * | c_ptr (void)
bool | isDateInt () const
Oid | insertBlob (char *buff, const int &blobSize)
int | getBlob (const Oid &blobId, char *&buff)
bool | removeBlob (const Oid &blobId)
bool | beginTransaction (void)
bool | commitTransaction (void)
bool | rollBackTransaction (void)
int | exec_cmd_params (const char *command, int nParams, const Oid *paramTypes, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
std::string | getClientEncoding ()

## Static Public Member Functions

static char * | escapeString (const char *from, const size_t &fromLen, size_t &newLen)
static void | freeMem (void *ptr)
static unsigned char * | escapeBytea (const unsigned char *from, size_t from_length, size_t *to_length)

## Protected Member Functions

| TePGConnection (const TePGConnection &c)
TePGConnection & | operator= (const TePGConnection &c)

## Protected Attributes

PGconn * | pg_connection_
int | int_connection_
Oid | last_oid_
bool | inTransaction_
bool | isDateInt_

## Constructor & Destructor Documentation

TePGConnection::TePGConnection | ( | const string & | str_connection = `""` | ) | `[inline]`

virtual TePGConnection::~TePGConnection | ( |  | ) | `[inline, virtual]`

TePGConnection::TePGConnection | ( | const TePGConnection & | c | ) | `[protected]`

## Member Function Documentation

bool TePGConnection::beginTransaction | ( | void |  | ) |

PGconn* TePGConnection::c_ptr | ( | void |  | ) | `[inline]`

void TePGConnection::close | ( | void |  | ) |

bool TePGConnection::commitTransaction | ( | void |  | ) |

const char* TePGConnection::dbname | ( | void |  | ) | const`[inline]`

const char* TePGConnection::err_msg | ( | void |  | ) | const`[inline]`

static unsigned char* TePGConnection::escapeBytea | ( | const unsigned char * | from,
|  | size_t | from_length,
|  | size_t * | to_length
| ) |  | `[inline, static]`

static char* TePGConnection::escapeString | ( | const char * | from,
|  | const size_t & | fromLen,
|  | size_t & | newLen
| ) |  | `[inline, static]`

PGresult* TePGConnection::exec | ( | const string & | str_qry | ) | `[inline]`

int TePGConnection::exec_cmd | ( | const string & | str_qry | ) |

int TePGConnection::exec_cmd_params | ( | const char * | command,
|  | int | nParams,
|  | const Oid * | paramTypes,
|  | const char *const * | paramValues,
|  | const int * | paramLengths,
|  | const int * | paramFormats,
|  | int | resultFormat
| ) |  |

static void TePGConnection::freeMem | ( | void * | ptr | ) | `[inline, static]`

int TePGConnection::getBlob | ( | const Oid & | blobId,
|  | char *& | buff
| ) |  |

std::string TePGConnection::getClientEncoding | ( |  | ) |

Oid TePGConnection::getOID | ( | void |  | ) | const`[inline]`

Oid TePGConnection::insertBlob | ( | char * | buff,
|  | const int & | blobSize
| ) |  |

bool TePGConnection::isDateInt | ( |  | ) | const`[inline]`

bool TePGConnection::open | ( | PGconn * | conn | ) |

bool TePGConnection::open | ( | const string & | str_connection | ) |

TePGConnection& TePGConnection::operator= | ( | const TePGConnection & | c | ) | `[protected]`

bool TePGConnection::removeBlob | ( | const Oid & | blobId | ) | `[inline]`

bool TePGConnection::rollBackTransaction | ( | void |  | ) |

bool TePGConnection::state | ( | void |  | ) | const`[inline]`

## Member Data Documentation

int TePGConnection::int_connection_`[protected]`

bool TePGConnection::inTransaction_`[protected]`

bool TePGConnection::isDateInt_`[protected]`

Oid TePGConnection::last_oid_`[protected]`

PGconn* TePGConnection::pg_connection_`[protected]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/PostgreSQL/TePGInterface.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/PostgreSQL/TePGInterface.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines