Solutions Open Source

Référence de la classe ADODB2_postgres

Graphe d'héritage de ADODB2_postgres:

Inheritance graph
[légende]
Graphe de collaboration de ADODB2_postgres:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 MetaType ($t, $len=-1, $fieldobj=false)
 ActualType ($meta)
 AddColumnSQL ($tabname, $flds)
 AlterColumnSQL ($tabname, $flds, $tableflds='', $tableoptions='')
 DropColumnSQL ($tabname, $flds, $tableflds='', $tableoptions='')
 _recreate_copy_table ($tabname, $dropflds, $tableflds, $tableoptions='')
 DropTableSQL ($tabname)
 _CreateSuffix ($fname, &$ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint)
 _DropAutoIncrement ($tabname)
 _IndexSQL ($idxname, $tabname, $flds, $idxoptions)
 _GetSize ($ftype, $ty, $fsize, $fprec)

Attributs publics

 $databaseType = 'postgres'
 $seqField = false
 $seqPrefix = 'SEQ_'
 $addCol = ' ADD COLUMN'
 $quote = '"'
 $renameTable = 'ALTER TABLE %s RENAME TO %s'
 $dropTable = 'DROP TABLE %s CASCADE'


Documentation des fonctions membres

ADODB2_postgres::MetaType ( t,
len = -1,
fieldobj = false 
)

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::ActualType ( meta  ) 

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::AddColumnSQL ( tabname,
flds 
)

Adding a new Column

reimplementation of the default function as postgres does NOT allow to set the default in the same statement

Paramètres:
string $tabname table-name
string $flds column-names and types for the changed columns
Renvoie:
array with SQL strings

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::AlterColumnSQL ( tabname,
flds,
tableflds = '',
tableoptions = '' 
)

Change the definition of one column

Postgres can't do that on it's own, you need to supply the complete defintion of the new table, to allow, recreating the table and copying the content over to the new table

Paramètres:
string $tabname table-name
string $flds column-name and type for the changed column
string $tableflds complete defintion of the new table, eg. for postgres, default ''
array/ $tableoptions options for the new table see CreateTableSQL, default ''
Renvoie:
array with SQL strings

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::DropColumnSQL ( tabname,
flds,
tableflds = '',
tableoptions = '' 
)

Drop one column

Postgres < 7.3 can't do that on it's own, you need to supply the complete defintion of the new table, to allow, recreating the table and copying the content over to the new table

Paramètres:
string $tabname table-name
string $flds column-name and type for the changed column
string $tableflds complete defintion of the new table, eg. for postgres, default ''
array/ $tableoptions options for the new table see CreateTableSQL, default ''
Renvoie:
array with SQL strings

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::_recreate_copy_table ( tabname,
dropflds,
tableflds,
tableoptions = '' 
)

Save the content into a temp. table, drop and recreate the original table and copy the content back in

We also take care to set the values of the sequenz and recreate the indexes. All this is done in a transaction, to not loose the content of the table, if something went wrong!

ADODB2_postgres::DropTableSQL ( tabname  ) 

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::_CreateSuffix ( fname,
&$  ftype,
fnotnull,
fdefault,
fautoinc,
fconstraint 
)

ADODB2_postgres::_DropAutoIncrement ( tabname  ) 

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::_IndexSQL ( idxname,
tabname,
flds,
idxoptions 
)

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::_GetSize ( ftype,
ty,
fsize,
fprec 
)

Réimplémentée à partir de ADODB_DataDict.


Documentation des données membres

ADODB2_postgres::$databaseType = 'postgres'

ADODB2_postgres::$seqField = false

ADODB2_postgres::$seqPrefix = 'SEQ_'

ADODB2_postgres::$addCol = ' ADD COLUMN'

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::$quote = '"'

ADODB2_postgres::$renameTable = 'ALTER TABLE %s RENAME TO %s'

Réimplémentée à partir de ADODB_DataDict.

ADODB2_postgres::$dropTable = 'DROP TABLE %s CASCADE'

Réimplémentée à partir de ADODB_DataDict.


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:39:33 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3