POT
POT
POT
Main menu

Download

Forum

SVN

Class: OTS_DB_PostgreSQL

Source Location: /classes/OTS_DB_PostgreSQL.php

Class OTS_DB_PostgreSQL

Class Overview

PostgreSQL connection interface.

PostgreSQL connection interface. At all everything that you really need to read from this class documentation is list of parameters for driver's constructor.

Located in /classes/OTS_DB_PostgreSQL.php [line 26]

PDO
   |
   --OTS_Base_DB
      |
      --OTS_DB_PostgreSQL
Author(s):
Information Tags:
Version:  0.1.3
Version:  0.0.4
Since:  0.0.4

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From OTS_Base_DB

OTS_Base_DB::fieldName()
Query-quoted field name.
OTS_Base_DB::limit()
LIMIT/OFFSET clause for queries.
OTS_Base_DB::SQLquery()
OTS_Base_DB::SQLquote()
OTS_Base_DB::tableName()
Query-quoted table name.

[ Top ]
Method Summary
OTS_DB_PostgreSQL   __construct()   Creates database connection.

[ Top ]
Methods
Constructor __construct  [line 51]

  OTS_DB_PostgreSQL __construct( array $params  )

Creates database connection.

Creates database connection. Connects to PgSQL (PostgreSQL) database on given arguments.

List of parameters for this drivers:

  • host - database server.
  • port - port (optional, also it is possible to use host:port in host parameter).
  • database - database name.
  • user - user login.
  • password - user password.

Parameters:
array   $params:  Connection parameters.

API Tags:
Access:  public

Information Tags:
Version:  0.0.6
Version:  0.0.4
Throws:  PDOException On PDO operation error.
Since:  0.0.4

[ Top ]