[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/export/ -> sql.php (sommaire)

Set of functions used to build SQL dumps of tables

Poids: 915 lignes (38 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 11 fonctions

  PMA_exportComment()
  PMA_exportFooter()
  PMA_exportHeader()
  PMA_exportDBCreate()
  PMA_exportDBHeader()
  PMA_exportDBFooter()
  PMA_getTableDefStandIn()
  PMA_getTableDef()
  PMA_getTableComments()
  PMA_exportStructure()
  PMA_exportData()

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

PMA_exportComment($text)   X-Ref
Outputs comment

param: string      Text of comment
return: bool        Whether it suceeded

PMA_exportFooter()   X-Ref
Outputs export footer

return: bool        Whether it suceeded

PMA_exportHeader()   X-Ref
Outputs export header

return: bool        Whether it suceeded

PMA_exportDBCreate($db)   X-Ref
Outputs CREATE DATABASE database

param: string      Database name
return: bool        Whether it suceeded

PMA_exportDBHeader($db)   X-Ref
Outputs database header

param: string      Database name
return: bool        Whether it suceeded

PMA_exportDBFooter($db)   X-Ref
Outputs database footer

param: string      Database name
return: bool        Whether it suceeded

PMA_getTableDefStandIn($db, $view, $crlf)   X-Ref
Returns a stand-in CREATE definition to resolve view dependencies

param: string   the database name
param: string   the vew name
param: string   the end of line sequence
return: string   resulting definition

PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false)   X-Ref
Returns $table's CREATE definition

param: string   the database name
param: string   the table name
param: string   the end of line sequence
param: string   the url to go back in case of error
param: boolean  whether to include creation/update/check dates
return: string   resulting schema

PMA_getTableComments($db, $table, $crlf, $do_relation = false, $do_comments = false, $do_mime = false)   X-Ref
Returns $table's comments, relations etc.

param: string   the database name
param: string   the table name
param: string   the end of line sequence
param: boolean  whether to include relation comments
param: boolean  whether to include column comments
param: boolean  whether to include mime comments
return: string   resulting comments

PMA_exportStructure($db, $table, $crlf, $error_url, $relation = FALSE, $comments = FALSE, $mime = FALSE, $dates = FALSE, $export_mode, $export_type)   X-Ref
Outputs table's structure

param: string   the database name
param: string   the table name
param: string   the end of line sequence
param: string   the url to go back in case of error
param: boolean  whether to include relation comments
param: boolean  whether to include column comments
param: boolean  whether to include mime comments
param: string   'stand_in', 'create_table', 'create_view'
param: string   'server', 'database', 'table'
return: bool     Whether it suceeded

PMA_exportData($db, $table, $crlf, $error_url, $sql_query)   X-Ref
Dispatches between the versions of 'getTableContent' to use depending
on the php version

author: staybyte
param: string      the database name
param: string      the table name
param: string      the end of line sequence
param: string      the url to go back in case of error
param: string      SQL query for obtaining data
return: bool        Whether it suceeded



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics