POT
POT
POT
Main menu

Download

Forum

SVN

Class: OTS_DB_ODBC

Source Location: /classes/OTS_DB_ODBC.php

Class OTS_DB_ODBC

Class Overview

ODBC connection interface.

ODBC 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_ODBC.php [line 26]

PDO
   |
   --OTS_Base_DB
      |
      --OTS_DB_ODBC
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_ODBC   __construct()   Creates database connection.

[ Top ]
Methods
Constructor __construct  [line 56]

  OTS_DB_ODBC __construct( array $params  )

Creates database connection.

Creates database connection. Connects to ODBC data source on given arguments.

List of parameters for this drivers:

  • host - database host.
  • port - ODBC driver.
  • database - database name.
  • user - user login.
  • password - user password.
  • source - ODBC data source.
Note: Since 0.1.3 version source parameter was added.

Parameters:
array   $params:  Connection parameters.

API Tags:
Access:  public

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

[ Top ]