Solutions Open Source

Référence de la classe ADODB_postgres64

Graphe d'héritage de ADODB_postgres64:

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

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 ADODB_postgres64 ()
 ServerInfo ()
 IfNull ($field, $ifNull)
 pg_insert_id ($tablename, $fieldname)
 _insertid ($table, $column)
 _affectedrows ()
 BeginTrans ()
 RowLock ($tables, $where, $flds='1 as ignore')
 CommitTrans ($ok=true)
 RollbackTrans ()
MetaTables ($ttype=false, $showSchema=false, $mask=false)
 qstr ($s, $magic_quotes=false)
 SQLDate ($fmt, $col=false)
 UpdateBlobFile ($table, $column, $path, $where, $blobtype='BLOB')
 BlobDelete ($blob)
 GuessOID ($oid)
 BlobDecode ($blob, $maxsize=false, $hastrans=true)
 BlobEncode ($blob)
 UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB')
 OffsetDate ($dayFraction, $date=false)
MetaColumns ($table, $normalize=true)
MetaIndexes ($table, $primary=FALSE)
 _connect ($str, $user='', $pwd='', $db='', $ctype=0)
 _nconnect ($argHostname, $argUsername, $argPassword, $argDatabaseName)
 _pconnect ($str, $user='', $pwd='', $db='')
 _query ($sql, $inputarr)
 _errconnect ()
 ErrorMsg ()
 ErrorNo ()
 _close ()
 CharMax ()
 TextMax ()

Attributs publics

 $databaseType = 'postgres64'
 $dataProvider = 'postgres'
 $hasInsertID = true
 $_resultid = false
 $concat_operator = '||'
 maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro
 $metaDatabasesSQL = "select datname from pg_database where datname not in ('template0','template1') order by 1"
 character set to use - only for interbase, postgres and oci8
 $metaTablesSQL
 $isoDates = true
 error function to call
 $sysDate = "CURRENT_DATE"
 Use 'true' to store the item compressed (uses zlib).
 $sysTimeStamp = "CURRENT_TIMESTAMP"
 name of function that returns the current date
 $blobEncodeType = 'C'
 $metaColumnsSQL
 $metaColumnsSQL1
 $metaKeySQL
 $hasAffectedRows = true
 supports autoincrement ID?
 $hasLimit = false
 support mssql/access SELECT TOP 10 * FROM TABLE
 $true = 'TRUE'
 used by DBTimeStamp as the default timestamp fmt.
 $false = 'FALSE'
 string that represents TRUE for a database
 $fmtDate = "'Y-m-d'"
 uppercase function
 $fmtTimeStamp = "'Y-m-d H:i:s'"
 used by DBDate() as the default date format used by the database
 $hasMoveFirst = true
 this is a readonly database - used by phpLens
 $hasGenID = true
 has ability to run MoveFirst(), scrolling backwards
 $_genIDSQL = "SELECT NEXTVAL('%s')"
 $_genSeqSQL = "CREATE SEQUENCE %s START %s"
 $_dropSeqSQL = "DROP SEQUENCE %s"
 $metaDefaultsSQL = "SELECT d.adnum as num, d.adsrc as def from pg_attrdef d, pg_class c where d.adrelid=c.oid and c.relname='%s' order by d.adnum"
 $random = 'random()'
 string length ofperator
 $autoRollback = true
 random function
 $_bindInputArray = false
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $disableBlobs = false


Documentation des fonctions membres

ADODB_postgres64::ADODB_postgres64 (  ) 

ADODB_postgres64::ServerInfo (  ) 

Get server version info...

Renvoie:
An array with 2 elements: $arr['string'] is the description string, and $arr[version] is the version (also a string).

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

ADODB_postgres64::IfNull ( field,
ifNull 
)

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

ADODB_postgres64::pg_insert_id ( tablename,
fieldname 
)

ADODB_postgres64::_insertid ( table,
column 
)

ADODB_postgres64::_affectedrows (  ) 

ADODB_postgres64::BeginTrans (  ) 

Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().

Renvoie:
true if succeeded or false if database does not support transactions

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

ADODB_postgres64::RowLock ( tables,
where,
flds = '1 as ignore' 
)

ADODB_postgres64::CommitTrans ( ok = true  ) 

If database does not support transactions, always return true as data always commited

Paramètres:
$ok set to false to rollback transaction, true to commit
Renvoie:
true/false.

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

ADODB_postgres64::RollbackTrans (  ) 

If database does not support transactions, rollbacks always fail, so return false

Renvoie:
true/false.

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

& ADODB_postgres64::MetaTables ( ttype = false,
showSchema = false,
mask = false 
)

Paramètres:
ttype can either be 'VIEW' or 'TABLE' or false. If false, both views and tables are returned. "VIEW" returns only views "TABLE" returns only tables
showSchema returns the schema/user with the table name, eg. USER.TABLE
mask is the input mask - only supported by oci8 and postgresql
Renvoie:
array of tables for current database.

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

ADODB_postgres64::qstr ( s,
magic_quotes = false 
)

Correctly quotes a string so that all strings are escaped. We prefix and append to the string single-quotes. An example is $db->qstr("Don't bother",magic_quotes_runtime());

Paramètres:
s the string to quote
[magic_quotes] if $s is GET/POST var, set to get_magic_quotes_gpc(). This undoes the stupidity of magic quotes for GPC.
Renvoie:
quoted string to be sent back to database

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

ADODB_postgres64::SQLDate ( fmt,
col = false 
)

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

ADODB_postgres64::UpdateBlobFile ( table,
column,
path,
where,
blobtype = 'BLOB' 
)

Usage: UpdateBlob('TABLE', 'COLUMN', '/path/to/file', 'ID=1');

$blobtype supports 'BLOB' and 'CLOB'

$conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)'); $conn->UpdateBlob('blobtable','blobcol',$blobpath,'id=1');

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

ADODB_postgres64::BlobDelete ( blob  ) 

ADODB_postgres64::GuessOID ( oid  ) 

ADODB_postgres64::BlobDecode ( blob,
maxsize = false,
hastrans = true 
)

ADODB_postgres64::BlobEncode ( blob  ) 

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

ADODB_postgres64::UpdateBlob ( table,
column,
val,
where,
blobtype = 'BLOB' 
)

Update a blob column, given a where clause. There are more sophisticated blob handling functions that we could have implemented, but all require a very complex API. Instead we have chosen something that is extremely simple to understand and use.

Note: $blobtype supports 'BLOB' and 'CLOB', default is BLOB of course.

Usage to update a $blobvalue which has a primary key blob_id=1 into a field blobtable.blobcolumn:

UpdateBlob('blobtable', 'blobcolumn', $blobvalue, 'blob_id=1');

Insert example:

$conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)'); $conn->UpdateBlob('blobtable','blobcol',$blob,'id=1');

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

ADODB_postgres64::OffsetDate ( dayFraction,
date = false 
)

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

& ADODB_postgres64::MetaColumns ( table,
normalize = true 
)

List columns in a database as an array of ADOFieldObjects. See top of file for definition of object.

Paramètres:
$table table name to query
$normalize makes table name case-insensitive (required by some databases) is optional database schema to use - not supported by all databases.
Renvoie:
array of ADOFieldObjects for current table.

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

Réimplémentée dans ADODB_netezza.

& ADODB_postgres64::MetaIndexes ( table,
primary = FALSE 
)

ADODB_postgres64::_connect ( str,
user = '',
pwd = '',
db = '',
ctype = 0 
)

ADODB_postgres64::_nconnect ( argHostname,
argUsername,
argPassword,
argDatabaseName 
)

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

ADODB_postgres64::_pconnect ( str,
user = '',
pwd = '',
db = '' 
)

ADODB_postgres64::_query ( sql,
inputarr 
)

Réimplémentée dans ADODB_postgres7.

ADODB_postgres64::_errconnect (  ) 

ADODB_postgres64::ErrorMsg (  ) 

Renvoie:
the last error message

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

ADODB_postgres64::ErrorNo (  ) 

Renvoie:
the last error number. Normally 0 means no error.

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

ADODB_postgres64::_close (  ) 

ADODB_postgres64::CharMax (  ) 

ADODB_postgres64::TextMax (  ) 


Documentation des données membres

ADODB_postgres64::$databaseType = 'postgres64'

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

Réimplémentée dans ADODB_netezza, et ADODB_postgres7.

ADODB_postgres64::$dataProvider = 'postgres'

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$hasInsertID = true

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$_resultid = false

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$concat_operator = '||'

maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$metaDatabasesSQL = "select datname from pg_database where datname not in ('template0','template1') order by 1"

character set to use - only for interbase, postgres and oci8

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$metaTablesSQL

Valeur initiale :

 "select tablename,'T' from pg_tables where tablename not like 'pg\_%'
        and tablename not in ('sql_features', 'sql_implementation_info', 'sql_languages',
         'sql_packages', 'sql_sizing', 'sql_sizing_profiles') 
        union 
        select viewname,'V' from pg_views where viewname not like 'pg\_%'"

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$isoDates = true

error function to call

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$sysDate = "CURRENT_DATE"

Use 'true' to store the item compressed (uses zlib).

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$sysTimeStamp = "CURRENT_TIMESTAMP"

name of function that returns the current date

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$blobEncodeType = 'C'

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$metaColumnsSQL

Valeur initiale :

 "SELECT a.attname,t.typname,a.attlen,a.atttypmod,a.attnotnull,a.atthasdef,a.attnum 
                FROM pg_class c, pg_attribute a,pg_type t 
                WHERE relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s')) and a.attname not like '....%%'
AND a.attnum > 0 AND a.atttypid = t.oid AND a.attrelid = c.oid ORDER BY a.attnum"

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$metaColumnsSQL1

Valeur initiale :

 "SELECT a.attname, t.typname, a.attlen, a.atttypmod, a.attnotnull, a.atthasdef, a.attnum 
FROM pg_class c, pg_attribute a, pg_type t, pg_namespace n 
WHERE relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s'))
 and c.relnamespace=n.oid and n.nspname='%s' 
        and a.attname not like '....%%' AND a.attnum > 0 
        AND a.atttypid = t.oid AND a.attrelid = c.oid ORDER BY a.attnum"

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$metaKeySQL

Valeur initiale :

 "SELECT ic.relname AS index_name, a.attname AS column_name,i.indisunique AS unique_key, i.indisprimary AS primary_key 
        FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a WHERE bc.oid = i.indrelid AND ic.oid = i.indexrelid AND (i.indkey[0] = a.attnum OR i.indkey[1] = a.attnum OR i.indkey[2] = a.attnum OR i.indkey[3] = a.attnum OR i.indkey[4] = a.attnum OR i.indkey[5] = a.attnum OR i.indkey[6] = a.attnum OR i.indkey[7] = a.attnum) AND a.attrelid = bc.oid AND bc.relname = '%s'"

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$hasAffectedRows = true

supports autoincrement ID?

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$hasLimit = false

support mssql/access SELECT TOP 10 * FROM TABLE

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

Réimplémentée dans ADODB_netezza, et ADODB_postgres7.

ADODB_postgres64::$true = 'TRUE'

used by DBTimeStamp as the default timestamp fmt.

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$false = 'FALSE'

string that represents TRUE for a database

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$fmtDate = "'Y-m-d'"

uppercase function

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$fmtTimeStamp = "'Y-m-d H:i:s'"

used by DBDate() as the default date format used by the database

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$hasMoveFirst = true

this is a readonly database - used by phpLens

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

ADODB_postgres64::$hasGenID = true

has ability to run MoveFirst(), scrolling backwards

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

ADODB_postgres64::$_genIDSQL = "SELECT NEXTVAL('%s')"

ADODB_postgres64::$_genSeqSQL = "CREATE SEQUENCE %s START %s"

ADODB_postgres64::$_dropSeqSQL = "DROP SEQUENCE %s"

ADODB_postgres64::$metaDefaultsSQL = "SELECT d.adnum as num, d.adsrc as def from pg_attrdef d, pg_class c where d.adrelid=c.oid and c.relname='%s' order by d.adnum"

ADODB_postgres64::$random = 'random()'

string length ofperator

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$autoRollback = true

random function

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

Réimplémentée dans ADODB_netezza.

ADODB_postgres64::$_bindInputArray = false

A boolean variable to state whether its a persistent connection or normal connection. */.

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

ADODB_postgres64::$disableBlobs = false


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