Class pgsqlDbTools

Description

Located in /plugins/db/pgsql/pgsql.dbtools.php (line 18)

jDbTools
   |
   --pgsqlDbTools
Variable Summary
mixed $falseValue
mixed $trueValue
mixed $typesInfo
Method Summary
void encloseName ( $name)
void execSQLScript ( $file)
array getFieldList (string $tableName, [string $sequence = ''])
void getTableList ()
Variables
mixed $falseValue = 'FALSE' (line 22)
  • access: public

Redefinition of:
jDbTools::$falseValue
mixed $trueValue = 'TRUE' (line 20)
  • access: public

Redefinition of:
jDbTools::$trueValue
mixed $typesInfo = array(
// type native type unified type minvalue maxvalue minlength maxlength
'bool' =>array('boolean', 'boolean', 0, 1, null, null),'boolean'=>array('boolean','boolean',0,1,null,null),'bit'=>array('smallint','integer',0,1,null,null),'tinyint'=>array('smallint','integer',-128,127,null,null),'smallint'=>array('smallint','integer',-32768,32767,null,null),'mediumint'=>array('integer','integer',-8388608,8388607,null,null),'integer'=>array('integer','integer',-2147483648,2147483647,null,null),'int'=>array('integer','integer',-2147483648,2147483647,null,null),'bigint'=>array('bigint','numeric','-9223372036854775808','9223372036854775807',null,null),'serial'=>array('serial','integer',-2147483648,2147483647,null,null),'bigserial'=>array('bigserial','numeric','-9223372036854775808','9223372036854775807',null,null),'autoincrement'=>array('serial','integer',-2147483648,2147483647,null,null),// for old dao files
'bigautoincrement'=>array('bigserial','numeric','-9223372036854775808','9223372036854775807',null,null),// for old dao files
'float'=>array('real','float',null,null,null,null),//4bytes
'money'=>array('money','float',null,null,null,null),//4bytes
'double precision'=>array('double precision','decimal',null,null,null,null),//8bytes
'double'=>array('double precision','decimal',null,null,null,null),//8bytes
'real'=>array('real','float',null,null,null,null),//8bytes
'number'=>array('double','decimal',null,null,null,null),//8bytes
'binary_float'=>array('real','float',null,null,null,null),//4bytes
'binary_double'=>array('double','decimal',null,null,null,null),//8bytes
'numeric'=>array('numeric','numeric',null,null,null,null),'decimal'=>array('decimal','decimal',null,null,null,null),'dec'=>array('decimal','decimal',null,null,null,null),'date'=>array('date','date',null,null,10,10),'time'=>array('time','time',null,null,8,8),'datetime'=>array('datetime','datetime',null,null,19,19),'timestamp'=>array('datetime','datetime',null,null,19,19),// oracle/pgsql timestamp
'utimestamp'=>array('timestamp','integer',0,2147483647,null,null),// mysql timestamp
'year'=>array('year','year',null,null,2,4),'interval'=>array('interval','integer',null,null,19,19),'char'=>array('char','char',null,null,0,255),'nchar'=>array('nchar','char',null,null,0,255),'varchar'=>array('varchar','varchar',null,null,0,0),'varchar2'=>array('varchar','varchar',null,null,0,0),'nvarchar2'=>array('nvarchar','varchar',null,null,0,0),'character'=>array('character','varchar',null,null,0,0),'character varying'=>array('character varying','varchar',null,null,0,0),'name'=>array('name','varchar',null,null,0,64),'longvarchar'=>array('varchar','varchar',null,null,0,0),'string'=>array('varchar','varchar',null,null,0,0),// for old dao files
'tinytext'=>array('text','text',null,null,0,255),'text'=>array('text','text',null,null,0,0),'mediumtext'=>array('text','text',null,null,0,0),'longtext'=>array('text','text',null,null,0,0),'long'=>array('text','text',null,null,0,0),'clob'=>array('text','text',null,null,0,0),'nclob'=>array('text','text',null,null,0,0),'tinyblob'=>array('bytea','blob',null,null,0,255),'blob'=>array('bytea','blob',null,null,0,65535),'mediumblob'=>array('bytea','blob',null,null,0,16777215),'longblob'=>array('bytea','blob',null,null,0,0),'bfile'=>array('bytea','blob',null,null,0,0),'bytea'=>array('bytea','varbinary',null,null,0,0),'binary'=>array('bytea','binary',null,null,0,255),'varbinary'=>array('bytea','varbinary',null,null,0,255),'raw'=>array('bytea','varbinary',null,null,0,2000),'long raw'=>array('bytea','varbinary',null,null,0,0),'enum'=>array('varchar','varchar',null,null,0,65535),'set'=>array('varchar','varchar',null,null,0,65535),'xmltype'=>array('varchar','varchar',null,null,0,65535),'point'=>array('point','varchar',null,null,0,16),'line'=>array('line','varchar',null,null,0,32),'lsed'=>array('lsed','varchar',null,null,0,32),'box'=>array('box','varchar',null,null,0,32),'path'=>array('path','varchar',null,null,0,65535),'polygon'=>array('polygon','varchar',null,null,0,65535),'circle'=>array('circle','varchar',null,null,0,24),'cidr'=>array('cidr','varchar',null,null,0,24),'inet'=>array('inet','varchar',null,null,0,24),'macaddr'=>array('macaddr','integer',0,0xFFFFFFFFFFFF,null,null),'bit varying'=>array('bit varying','varchar',null,null,0,65535),'arrays'=>array('array','varchar',null,null,0,65535),'complex types'=>array('complex','varchar',null,null,0,65535),)
(line 24)
  • access: protected

Redefinition of:
jDbTools::$typesInfo

Inherited Variables

Inherited from jDbTools

jDbTools::$dbmsStyle
jDbTools::$unifiedToPhp
jDbTools::$_conn
Methods
encloseName (line 112)
  • access: public
void encloseName ( $name)
  • $name

Redefinition of:
jDbTools::encloseName()
enclose the field name
execSQLScript (line 202)
  • access: public
void execSQLScript ( $file)
  • $file

Redefinition of:
jDbTools::execSQLScript()
getFieldList (line 136)

retrieve the list of fields of a table

  • return: keys are field names and values are jDbFieldProperties objects
  • access: public
array getFieldList (string $tableName, [string $sequence = ''])
  • string $tableName: the name of the table
  • string $sequence: the sequence used to auto increment the primary key

Redefinition of:
jDbTools::getFieldList()
retrieve the list of fields of a table
getTableList (line 120)
  • access: public
void getTableList ()

Redefinition of:
jDbTools::getTableList()
returns the table list

Inherited Methods

Inherited From jDbTools

jDbTools::__construct()
jDbTools::encloseName()
jDbTools::escapeValue()
jDbTools::execSQLScript()
jDbTools::getBooleanValue()
jDbTools::getFieldList()
jDbTools::getTableList()
jDbTools::getTypeInfo()
jDbTools::stringToPhpValue()
jDbTools::unifiedToPHPType()

Documentation generated on Thu, 19 Sep 2013 00:09:11 +0200 by phpDocumentor 1.4.3