ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v6:dictionary:actualtype

V6 Provider: \ADOdb\database\drivers\[driver]\ADODataDictionary

actualType

See Also

metaType()

Syntax
string actualType(
    string $metaType
)

Description

The method actualType() returns the database specific data type for a given metaType. The returned values varies from one database to another.

A connection to a data dictionary object is required.


Usage

Compatibility Mode

/*
* Example connection to MySQL database
*/
 
$obj = new ADOdb\connector;
 
$db = $obj->connect('127.0.0.1',"adodb","adodb",'employees');
 
$dict = $obj->loadDataDictionary();
 
$t = $dict->actualType('PO');
 
print $t;
 
/*
 * Prints POINT
 */

Standard Mode

/*
* Example connection to MySQL database
*/
 
$obj = new ADOdb\connector;
 
$db = $obj->connect('127.0.0.1',"adodb","adodb",'employees');
 
$dict = new \ADOdb\database\drivers\mysqli\ADODatadictionary($db);
 
$t = $dict->actualType('PO');
 
print $t;
 
/*
 * Prints POINT
 */
v6/dictionary/actualtype.txt · Last modified: by 127.0.0.1