[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/adodb/ -> adodb-datadict.inc.php (sommaire)

(pas de description)

Poids: 820 lignes (23 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ADODB_DataDict:: (31 méthodes):
  GetCommentSQL()
  SetCommentSQL()
  MetaTables()
  MetaColumns()
  MetaPrimaryKeys()
  MetaIndexes()
  MetaType()
  NameQuote()
  TableName()
  ExecuteSQLArray()
  ActualType()
  CreateDatabase()
  CreateIndexSQL()
  DropIndexSQL()
  SetSchema()
  AddColumnSQL()
  AlterColumnSQL()
  RenameColumnSQL()
  DropColumnSQL()
  DropTableSQL()
  RenameTableSQL()
  CreateTableSQL()
  _GenFields()
  _GetSize()
  _CreateSuffix()
  _IndexSQL()
  _DropAutoIncrement()
  _TableSQL()
  _Triggers()
  _Options()
  ChangeTableSQL()

Définit 31 fonctions

  Lens_ParseTest()
  ctype_alnum()
  Lens_ParseArgs()

Classe: ADODB_DataDict  - X-Ref

GetCommentSQL($table,$col)   X-Ref
Pas de description

SetCommentSQL($table,$col,$cmt)   X-Ref
Pas de description

MetaTables()   X-Ref
Pas de description

MetaColumns($tab, $upper=true, $schema=false)   X-Ref
Pas de description

MetaPrimaryKeys($tab,$owner=false,$intkey=false)   X-Ref
Pas de description

MetaIndexes($table, $primary = false, $owner = false)   X-Ref
Pas de description

MetaType($t,$len=-1,$fieldobj=false)   X-Ref
Pas de description

NameQuote($name = NULL,$allowBrackets=false)   X-Ref
Pas de description

TableName($name)   X-Ref
Pas de description

ExecuteSQLArray($sql, $continueOnError = true)   X-Ref
Pas de description

ActualType($meta)   X-Ref
Pas de description

CreateDatabase($dbname,$options=false)   X-Ref
Pas de description

CreateIndexSQL($idxname, $tabname, $flds, $idxoptions = false)   X-Ref
Pas de description

DropIndexSQL($idxname, $tabname = NULL)   X-Ref
Pas de description

SetSchema($schema)   X-Ref
Pas de description

AddColumnSQL($tabname, $flds)   X-Ref
Pas de description

AlterColumnSQL($tabname, $flds, $tableflds='',$tableoptions='')   X-Ref
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
param: string $tabname table-name
param: string $flds column-name and type for the changed column
param: string $tableflds='' complete defintion of the new table, eg. for postgres, default ''
param: array/string $tableoptions='' options for the new table see CreateTableSQL, default ''
return: array with SQL strings

RenameColumnSQL($tabname,$oldcolumn,$newcolumn,$flds='')   X-Ref
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)
param: string $tabname table-name
param: string $oldcolumn column-name to be renamed
param: string $newcolumn new column-name
param: string $flds='' complete column-defintion-string like for AddColumnSQL, only used by mysql atm., default=''
return: array with SQL strings

DropColumnSQL($tabname, $flds, $tableflds='',$tableoptions='')   X-Ref
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
param: string $tabname table-name
param: string $flds column-name and type for the changed column
param: string $tableflds='' complete defintion of the new table, eg. for postgres, default ''
param: array/string $tableoptions='' options for the new table see CreateTableSQL, default ''
return: array with SQL strings

DropTableSQL($tabname)   X-Ref
Pas de description

RenameTableSQL($tabname,$newname)   X-Ref
Pas de description

CreateTableSQL($tabname, $flds, $tableoptions=false)   X-Ref
Pas de description

_GenFields($flds,$widespacing=false)   X-Ref
Pas de description

_GetSize($ftype, $ty, $fsize, $fprec)   X-Ref
Pas de description

_CreateSuffix($fname,$ftype,$fnotnull,$fdefault,$fautoinc,$fconstraint)   X-Ref
Pas de description

_IndexSQL($idxname, $tabname, $flds, $idxoptions)   X-Ref
Pas de description

_DropAutoIncrement($tabname)   X-Ref
Pas de description

_TableSQL($tabname,$lines,$pkey,$tableoptions)   X-Ref
Pas de description

_Triggers($tabname,$taboptions)   X-Ref
Pas de description

_Options($opts)   X-Ref
Pas de description

ChangeTableSQL($tablename, $flds, $tableoptions = false, $forceAlter = false)   X-Ref
Pas de description

Fonctions
Fonctions qui ne font pas partie d'une Classe:

Lens_ParseTest()   X-Ref
Pas de description

ctype_alnum($text)   X-Ref
Pas de description

Lens_ParseArgs($args,$endstmtchar=',',$tokenchars='_.-')   X-Ref
Pas de description



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7