

Öffentliche Methoden | |
| ActualType ($meta) | |
| _CreateSuffix ($fname, $ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint, $funsigned) | |
| AlterColumnSQL ($tabname, $flds) | |
| DropColumnSQL ($tabname, $flds) | |
| RenameColumnSQL ($tabname, $oldcolumn, $newcolumn, $flds='') | |
Datenfelder | |
| $databaseType = 'sqlite' | |
| $seqField = false | |
| $addCol = ' ADD COLUMN' | |
| $dropTable = 'DROP TABLE IF EXISTS %s' | |
| $dropIndex = 'DROP INDEX IF EXISTS %s' | |
| $renameTable = 'ALTER TABLE %s RENAME TO %s' | |
Definiert in Zeile 18 der Datei datadict-sqlite.inc.php.
| _CreateSuffix | ( | $ | fname, | |
| $ | ftype, | |||
| $ | fnotnull, | |||
| $ | fdefault, | |||
| $ | fautoinc, | |||
| $ | fconstraint, | |||
| $ | funsigned | |||
| ) |
Definiert in Zeile 59 der Datei datadict-sqlite.inc.php.
00060 { 00061 $suffix = ''; 00062 if ($funsigned) $suffix .= ' UNSIGNED'; 00063 if ($fnotnull) $suffix .= ' NOT NULL'; 00064 if (strlen($fdefault)) $suffix .= " DEFAULT $fdefault"; 00065 if ($fautoinc) $suffix .= ' AUTOINCREMENT'; 00066 if ($fconstraint) $suffix .= ' '.$fconstraint; 00067 return $suffix; 00068 }
| ActualType | ( | $ | meta | ) |
Returns the actual type given a character code.
C: varchar X: CLOB (character large object) or largest varchar size if CLOB is not supported C2: Multibyte varchar X2: Multibyte CLOB
B: BLOB (binary large object)
D: Date T: Date-time L: Integer field suitable for storing booleans (0 or 1) I: Integer F: Floating point number N: Numeric or decimal number
Erneute Implementation von ADODB_DataDict.
Definiert in Zeile 28 der Datei datadict-sqlite.inc.php.
00029 { 00030 switch(strtoupper($meta)) { 00031 case 'C': return 'VARCHAR'; // TEXT , TEXT affinity 00032 case 'XL':return 'LONGTEXT'; // TEXT , TEXT affinity 00033 case 'X': return 'TEXT'; // TEXT , TEXT affinity 00034 00035 case 'C2': return 'VARCHAR'; // TEXT , TEXT affinity 00036 case 'X2': return 'LONGTEXT'; // TEXT , TEXT affinity 00037 00038 case 'B': return 'LONGBLOB'; // TEXT , NONE affinity , BLOB 00039 00040 case 'D': return 'DATE'; // NUMERIC , NUMERIC affinity 00041 case 'T': return 'DATETIME'; // NUMERIC , NUMERIC affinity 00042 case 'L': return 'TINYINT'; // NUMERIC , INTEGER affinity 00043 00044 case 'R': 00045 case 'I4': 00046 case 'I': return 'INTEGER'; // NUMERIC , INTEGER affinity 00047 case 'I1': return 'TINYINT'; // NUMERIC , INTEGER affinity 00048 case 'I2': return 'SMALLINT'; // NUMERIC , INTEGER affinity 00049 case 'I8': return 'BIGINT'; // NUMERIC , INTEGER affinity 00050 00051 case 'F': return 'DOUBLE'; // NUMERIC , REAL affinity 00052 case 'N': return 'NUMERIC'; // NUMERIC , NUMERIC affinity 00053 default: 00054 return $meta; 00055 } 00056 }
| AlterColumnSQL | ( | $ | tabname, | |
| $ | flds | |||
| ) |
Definiert in Zeile 70 der Datei datadict-sqlite.inc.php.
00071 { 00072 if ($this->debug) ADOConnection::outp("AlterColumnSQL not supported natively by SQLite"); 00073 return array(); 00074 }
| DropColumnSQL | ( | $ | tabname, | |
| $ | flds | |||
| ) |
Definiert in Zeile 76 der Datei datadict-sqlite.inc.php.
00077 { 00078 if ($this->debug) ADOConnection::outp("DropColumnSQL not supported natively by SQLite"); 00079 return array(); 00080 }
| RenameColumnSQL | ( | $ | tabname, | |
| $ | oldcolumn, | |||
| $ | newcolumn, | |||
| $ | flds = '' | |||
| ) |
Rename one column
Some DBM's can only do this together with changeing the type of the column (even if that stays the same, eg. mysql)
| string | $tabname table-name | |
| string | $oldcolumn column-name to be renamed | |
| string | $newcolumn new column-name | |
| string | $flds='' complete column-defintion-string like for AddColumnSQL, only used by mysql atm., default='' |
Erneute Implementation von ADODB_DataDict.
Definiert in Zeile 82 der Datei datadict-sqlite.inc.php.
00083 { 00084 if ($this->debug) ADOConnection::outp("RenameColumnSQL not supported natively by SQLite"); 00085 return array(); 00086 }
| $addCol = ' ADD COLUMN' |
Erneute Implementation von ADODB_DataDict.
Definiert in Zeile 21 der Datei datadict-sqlite.inc.php.
| $databaseType = 'sqlite' |
Definiert in Zeile 19 der Datei datadict-sqlite.inc.php.
| $dropIndex = 'DROP INDEX IF EXISTS %s' |
Erneute Implementation von ADODB_DataDict.
Definiert in Zeile 23 der Datei datadict-sqlite.inc.php.
| $dropTable = 'DROP TABLE IF EXISTS %s' |
Erneute Implementation von ADODB_DataDict.
Definiert in Zeile 22 der Datei datadict-sqlite.inc.php.
| $renameTable = 'ALTER TABLE %s RENAME TO %s' |
Erneute Implementation von ADODB_DataDict.
Definiert in Zeile 24 der Datei datadict-sqlite.inc.php.
| $seqField = false |
Definiert in Zeile 20 der Datei datadict-sqlite.inc.php.
| Copyright © 2003 - 2010 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|