[ Index ] |
|
Code source de CMS made simple 1.0.5 |
[Code source] [Imprimer] [Statistiques]
ADOdb Lite Meta Module for Mysql
Poids: | 446 lignes (11 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
mysql_meta_ADOConnection:: (11 méthodes):
MetaError()
MetaErrorMsg()
MetaPrimaryKeys()
MetaForeignKeys()
MetaType()
MetaDatabases()
MetaTables()
_findschema()
MetaColumns()
MetaIndexes()
MetaColumnNames()
mysql_meta_ResultSet:: (1 méthode):
MetaType()
Classe: mysql_meta_ADOConnection - X-Ref
MetaError($err=false) X-Ref |
Pas de description |
MetaErrorMsg($errno) X-Ref |
Pas de description |
MetaPrimaryKeys($table, $owner=false) X-Ref |
returns: an array with the primary key columns in it. |
MetaForeignKeys($table, $owner=false, $upper=false) X-Ref |
returns: assoc array where keys are tables, and values are foreign keys |
MetaType($t,$len=-1,$fieldobj=false) X-Ref |
Pas de description |
MetaDatabases() X-Ref |
return the databases that the driver can connect to. Some databases will return an empty array. return: an array of database names. |
MetaTables($ttype=false,$showSchema=false,$mask=false) X-Ref |
param: ttype can either be 'VIEW' or 'TABLE' or false. param: showSchema returns the schema/user with the table name, eg. USER.TABLE param: mask is the input mask - only supported by oci8 and postgresql return: array of tables for current database. |
_findschema(&$table,&$schema) X-Ref |
Pas de description |
MetaColumns($table,$normalize=true) X-Ref |
List columns in a database as an array of ADOFieldObjects. See top of file for definition of object. param: $table table name to query param: $normalize makes table name case-insensitive (required by some databases) return: array of ADOFieldObjects for current table. |
MetaIndexes($table, $primary = false, $owner = false) X-Ref |
List indexes on a table as an array. param: table table name to query param: primary true to only show primary keys. Not actually used for most databases return: array of indexes on current table. Each element represents an index, and is itself an associative array. |
MetaColumnNames($table, $numIndexes=false) X-Ref |
List columns names in a table as an array. param: table table name to query return: array of column names for current table. |
Classe: mysql_meta_ResultSet - X-Ref
MetaType($t,$len=-1,$fieldobj=false) X-Ref |
Get the metatype of the column. This is used for formatting. This is because many databases use different names for the same type, so we transform the original type to our standardised version which uses 1 character codes: param: t is the type passed in. Normally is ADOFieldObject->type. param: len is the maximum length of that field. This is because we treat character param: fieldobj is the field object returned by the database driver. Can hold return: the general type of the data: |
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |