lodel
[ class tree: lodel ] [ index: lodel ] [ all elements ]

Class: ADODB_DataDict

Source Location: /lodel/scripts/adodb/adodb-datadict.inc.php

Class Overview




Variables

Methods


Child classes:


Class Details

[line 164]


[ Top ]


Class Variables

$addCol =  ' ADD'

[line 170]


Type:   mixed


[ Top ]

$alterCol =  ' ALTER COLUMN'

[line 171]


Type:   mixed


[ Top ]

$autoIncrement =  false

[line 178]


Type:   mixed


[ Top ]

$blobSize =  100

[line 181]


Type:   mixed


[ Top ]

$connection =

[line 165]


Type:   mixed


[ Top ]

$dataProvider =

[line 179]


Type:   mixed


[ Top ]

$debug =  false

[line 166]


Type:   mixed


[ Top ]

$dropCol =  ' DROP COLUMN'

[line 172]


Type:   mixed


[ Top ]

$dropIndex =  'DROP INDEX %s'

[line 169]


Type:   mixed


[ Top ]

$dropTable =  'DROP TABLE %s'

[line 167]


Type:   mixed


[ Top ]

$invalidResizeTypes4 = array('CLOB','BLOB','TEXT','DATE','TIME')

[line 180]


Type:   mixed


[ Top ]

$nameRegex =  '\w'

[line 174]


Type:   mixed


[ Top ]

$nameRegexBrackets =  'a-zA-Z0-9_\(\)'

[line 175]


Type:   mixed


[ Top ]

$renameColumn =  'ALTER TABLE %s RENAME COLUMN %s TO %s'

[line 173]


Type:   mixed


[ Top ]

$renameTable =  'RENAME TABLE %s TO %s'

[line 168]


Type:   mixed


[ Top ]

$schema =  false

[line 176]


Type:   mixed


[ Top ]

$serverInfo = array()

[line 177]


Type:   mixed


[ Top ]



Class Methods


method ActualType [line 407]


method AddColumnSQL [line 452]

void AddColumnSQL( $tabname, $flds)



Overridden in child classes as:

ADODB2_sapdb::AddColumnSQL()
ADODB2_mssql::AddColumnSQL()
ADODB2_sybase::AddColumnSQL()
ADODB2_mssqlnative::AddColumnSQL()
ADODB2_postgres::AddColumnSQL()
Adding a new Column
ADODB2_oci8::AddColumnSQL()

Parameters:

   $tabname  
   $flds  

[ Top ]

method AlterColumnSQL [line 483]

array AlterColumnSQL( string $tabname, string $flds, [ $tableflds = ''], [ $tableoptions = ''], string $tableflds='', array/string $tableoptions='')

Change the definition of one column

As some DBM's can't do that on there 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




Tags:

return:  with SQL strings


Overridden in child classes as:

ADODB2_sapdb::AlterColumnSQL()
ADODB2_db2::AlterColumnSQL()
ADODB2_ibase::AlterColumnSQL()
ADODB2_generic::AlterColumnSQL()
ADODB2_informix::AlterColumnSQL()
ADODB2_sybase::AlterColumnSQL()
ADODB2_postgres::AlterColumnSQL()
Change the definition of one column
ADODB2_oci8::AlterColumnSQL()
ADODB2_access::AlterColumnSQL()

Parameters:

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/string   $tableoptions=''   options for the new table see CreateTableSQL, default ''
   $tableflds  
   $tableoptions  

[ Top ]

method ChangeTableSQL [line 922]

void ChangeTableSQL( $tablename, $flds, [ $tableoptions = false])



Overridden in child classes as:

ADODB2_db2::ChangeTableSQL()

Parameters:

   $tablename  
   $flds  
   $tableoptions  

[ Top ]

method CreateDatabase [line 412]

void CreateDatabase( $dbname, [ $options = false])



Overridden in child classes as:

ADODB2_firebird::CreateDatabase()
ADODB2_oci8::CreateDatabase()
ADODB2_access::CreateDatabase()

Parameters:

   $dbname  
   $options  

[ Top ]

method CreateIndexSQL [line 428]

void CreateIndexSQL( $idxname, $tabname, $flds, [ $idxoptions = false])



Parameters:

   $idxname  
   $tabname  
   $flds  
   $idxoptions  

[ Top ]

method CreateTableSQL [line 563]

void CreateTableSQL( $tabname, $flds, [ $tableoptions = array()])



Parameters:

   $tabname  
   $flds  
   $tableoptions  

[ Top ]

method DropColumnSQL [line 538]

array DropColumnSQL( string $tabname, string $flds, [ $tableflds = ''], [ $tableoptions = ''], string $tableflds='', array/string $tableoptions='')

Drop one column

Some DBM's can't do that on there 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




Tags:

return:  with SQL strings


Overridden in child classes as:

ADODB2_sapdb::DropColumnSQL()
ADODB2_mssql::DropColumnSQL()
ADODB2_db2::DropColumnSQL()
ADODB2_ibase::DropColumnSQL()
ADODB2_generic::DropColumnSQL()
ADODB2_informix::DropColumnSQL()
ADODB2_sybase::DropColumnSQL()
ADODB2_mssqlnative::DropColumnSQL()
ADODB2_postgres::DropColumnSQL()
Drop one column
ADODB2_oci8::DropColumnSQL()
ADODB2_access::DropColumnSQL()

Parameters:

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/string   $tableoptions=''   options for the new table see CreateTableSQL, default ''
   $tableflds  
   $tableoptions  

[ Top ]

method DropIndexSQL [line 442]

void DropIndexSQL( $idxname, [ $tabname = NULL])



Overridden in child classes as:

ADODB2_postgres::DropIndexSQL()

Parameters:

   $idxname  
   $tabname  

[ Top ]

method DropTableSQL [line 550]

void DropTableSQL( $tabname)



Overridden in child classes as:

ADODB2_postgres::DropTableSQL()

Parameters:

   $tabname  

[ Top ]

method ExecuteSQLArray [line 370]

void ExecuteSQLArray( $sql, [ $continueOnError = true])



Parameters:

   $sql  
   $continueOnError  

[ Top ]

method GetCommentSQL [line 184]

void GetCommentSQL( $table, $col)



Overridden in child classes as:

ADODB2_oci8::GetCommentSQL()

Parameters:

   $table  
   $col  

[ Top ]

method MetaColumns [line 200]

void MetaColumns( $tab, [ $upper = true], [ $schema = false])



Parameters:

   $tab  
   $upper  
   $schema  

[ Top ]

method MetaIndexes [line 212]

void MetaIndexes( $table, [ $primary = false], [ $owner = false])



Parameters:

   $table  
   $primary  
   $owner  

[ Top ]

method MetaPrimaryKeys [line 206]

void MetaPrimaryKeys( $tab, [ $owner = false], [ $intkey = false])



Parameters:

   $tab  
   $owner  
   $intkey  

[ Top ]

method MetaTables [line 194]

void MetaTables( )



[ Top ]

method MetaType [line 218]

void MetaType( $t, [ $len = -1], [ $fieldobj = false])



Overridden in child classes as:

ADODB2_sapdb::MetaType()
ADODB2_mssql::MetaType()
ADODB2_sybase::MetaType()
ADODB2_mssqlnative::MetaType()
ADODB2_postgres::MetaType()
ADODB2_oci8::MetaType()
ADODB2_mysql::MetaType()

Parameters:

   $t  
   $len  
   $fieldobj  

[ Top ]

method NameQuote [line 332]

void NameQuote( [ $name = NULL], [ $allowBrackets = false])



Overridden in child classes as:

ADODB2_firebird::NameQuote()

Parameters:

   $name  
   $allowBrackets  

[ Top ]

method RenameColumnSQL [line 514]

array RenameColumnSQL( string $tabname, string $oldcolumn, string $newcolumn, [ $flds = ''], string $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)




Tags:

return:  with SQL strings


Parameters:

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=''
   $flds  

[ Top ]

method RenameTableSQL [line 555]

void RenameTableSQL( $tabname, $newname)



Overridden in child classes as:

ADODB2_postgres::RenameTableSQL()

Parameters:

   $tabname  
   $newname  

[ Top ]

method SetCommentSQL [line 189]

void SetCommentSQL( $table, $col, $cmt)



Overridden in child classes as:

ADODB2_oci8::SetCommentSQL()

Parameters:

   $table  
   $col  
   $cmt  

[ Top ]

method SetSchema [line 447]

void SetSchema( $schema)



Overridden in child classes as:

ADODB2_access::SetSchema()

Parameters:

   $schema  

[ Top ]

method TableName [line 361]

void TableName( $name)



Parameters:

   $name  

[ Top ]

method _CreateSuffix [line 817]

void _CreateSuffix( $fname, $ftype, $fnotnull, $fdefault, $fautoinc, $fconstraint, $funsigned)



Overridden in child classes as:

ADODB2_sapdb::_CreateSuffix()
ADODB2_firebird::_CreateSuffix()
ADODB2_mssql::_CreateSuffix()
ADODB2_db2::_CreateSuffix()
ADODB2_informix::_CreateSuffix()
ADODB2_sybase::_CreateSuffix()
ADODB2_mssqlnative::_CreateSuffix()
ADODB2_postgres::_CreateSuffix()
ADODB2_oci8::_CreateSuffix()
ADODB2_mysql::_CreateSuffix()
ADODB2_access::_CreateSuffix()

Parameters:

   $fname  
   $ftype  
   $fnotnull  
   $fdefault  
   $fautoinc  
   $fconstraint  
   $funsigned  

[ Top ]

method _DropAutoIncrement [line 855]

void _DropAutoIncrement( $tabname)



Overridden in child classes as:

ADODB2_firebird::_DropAutoIncrement()
ADODB2_postgres::_DropAutoIncrement()
ADODB2_oci8::_DropAutoIncrement()

Parameters:

   $tabname  

[ Top ]

method _GenFields [line 593]

void _GenFields( $flds, [ $widespacing = false])



Parameters:

   $flds  
   $widespacing  

[ Top ]

method _GetSize [line 805]

void _GetSize( $ftype, $ty, $fsize, $fprec)



Overridden in child classes as:

ADODB2_mssql::_GetSize()
ADODB2_mssqlnative::_GetSize()
ADODB2_postgres::_GetSize()

Parameters:

   $ftype  
   $ty  
   $fsize  
   $fprec  

[ Top ]

method _IndexSQL [line 826]

void _IndexSQL( $idxname, $tabname, $flds, $idxoptions)



Overridden in child classes as:

ADODB2_mssql::_IndexSQL()
ADODB2_sybase::_IndexSQL()
ADODB2_mssqlnative::_IndexSQL()
ADODB2_postgres::_IndexSQL()
ADODB2_oci8::_IndexSQL()
ADODB2_mysql::_IndexSQL()

Parameters:

   $idxname  
   $tabname  
   $flds  
   $idxoptions  

[ Top ]

method _Options [line 905]

void _Options( $opts)



Parameters:

   $opts  

[ Top ]

method _TableSQL [line 860]

void _TableSQL( $tabname, $lines, $pkey, $tableoptions)



Parameters:

   $tabname  
   $lines  
   $pkey  
   $tableoptions  

[ Top ]

method _Triggers [line 897]

void _Triggers( $tabname, $taboptions)



Overridden in child classes as:

ADODB2_firebird::_Triggers()
ADODB2_oci8::_Triggers()

Parameters:

   $tabname  
   $taboptions  

[ Top ]


Documentation generated on Wed, 11 Mar 2009 10:48:28 +0100 by phpDocumentor 1.4.2