|
Adodb Dokumentation
V5.14 8 Sept 2011
|

Öffentliche Methoden | |
| ADODB_postgres64 () | |
| ServerInfo () | |
| IfNull ($field, $ifNull) | |
| pg_insert_id ($tablename, $fieldname) | |
| _insertid ($table, $column) | |
| _affectedrows () | |
| BeginTrans () | |
| RowLock ($tables, $where, $col='1 as adodbignore') | |
| 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) | |
| Param ($name) | |
| MetaIndexes ($table, $primary=FALSE, $owner=false) | |
| _connect ($str, $user='', $pwd='', $db='', $ctype=0) | |
| _nconnect ($argHostname, $argUsername, $argPassword, $argDatabaseName) | |
| _pconnect ($str, $user='', $pwd='', $db='') | |
| _query ($sql, $inputarr=false) | |
| _errconnect () | |
| ErrorMsg () | |
| ErrorNo () | |
| _close () | |
| CharMax () | |
| TextMax () | |
Datenfelder | |
| $databaseType = 'postgres64' | |
| $dataProvider = 'postgres' | |
| $hasInsertID = true | |
| $_resultid = false | |
| $concat_operator = '||' | |
| $metaDatabasesSQL = "select datname from pg_database where datname not in ('template0','template1') order by 1" | |
| $metaTablesSQL | |
| $isoDates = true | |
| $sysDate = "CURRENT_DATE" | |
| $sysTimeStamp = "CURRENT_TIMESTAMP" | |
| $blobEncodeType = 'C' | |
| $metaColumnsSQL | |
| $metaColumnsSQL1 | |
| $metaKeySQL | |
| $hasAffectedRows = true | |
| $hasLimit = false | |
| $true = 'TRUE' | |
| $false = 'FALSE' | |
| $fmtDate = "'Y-m-d'" | |
| $fmtTimeStamp = "'Y-m-d H:i:s'" | |
| $hasMoveFirst = true | |
| $hasGenID = true | |
| $_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()' | |
| $autoRollback = true | |
| random function | |
| $uniqueIisR = true | |
| $_bindInputArray = false | |
| $disableBlobs = false | |
| $_pnum = 0 | |
Definiert in Zeile 57 der Datei adodb-postgres64.inc.php.
| $metaColumnsSQL |
"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"
Definiert in Zeile 74 der Datei adodb-postgres64.inc.php.
| $metaColumnsSQL1 |
"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"
Definiert in Zeile 80 der Datei adodb-postgres64.inc.php.
| $metaKeySQL |
"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'"
Definiert in Zeile 88 der Datei adodb-postgres64.inc.php.
| $metaTablesSQL |
"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\_%'"
Definiert in Zeile 64 der Datei adodb-postgres64.inc.php.