Class: Doctrine_Import_Mysql

Source Location: /Doctrine/Import/Mysql.php

Class Doctrine_Import_Mysql

Class Overview

Located in /Doctrine/Import/Mysql.php [line 32]

Doctrine_Connection_Module
   |
   --Doctrine_Import
      |
      --Doctrine_Import_Mysql
Author(s): Information Tags:
Version:  $Revision: 2081 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::$conn
Doctrine_Connection_Module::$moduleName

Inherited From Doctrine_Import

Doctrine_Import::importSchema()
importSchema
Doctrine_Import::listDatabases()
lists all databases
Doctrine_Import::listFunctions()
lists all availible database functions
Doctrine_Import::listSequences()
lists all database sequences
Doctrine_Import::listTableColumns()
lists table constraints
Doctrine_Import::listTableConstraints()
lists table constraints
Doctrine_Import::listTableIndexes()
lists table constraints
Doctrine_Import::listTables()
lists tables
Doctrine_Import::listTableTriggers()
lists table triggers
Doctrine_Import::listTableViews()
lists table views
Doctrine_Import::listTriggers()
lists all database triggers
Doctrine_Import::listUsers()
lists database users
Doctrine_Import::listViews()
lists database views

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::__construct()
Doctrine_Connection_Module::getConnection()
getConnection returns the connection object this module uses
Doctrine_Connection_Module::getModuleName()
getModuleName returns the name of this module

[ Top ]
Property Summary
mixed   $sql  

[ Top ]
Method Summary
array   listSequences()   lists all database sequences
array   listTableColumns()   lists table constraints
array   listTableConstraints()   lists table constraints
array   listTableForeignKeys()   lists table foreign keys
array   listTableIndexes()   lists table constraints
array   listTables()   lists tables
array   listViews()   lists database views

[ Top ]
Properties
mixed   $sql = array(
'showDatabases' => 'SHOW DATABASES',
'listTableFields' => 'DESCRIBE %s',
'listSequences' => 'SHOW TABLES',
'listTables' => 'SHOW TABLES',
'listUsers' => 'SELECT DISTINCT USER FROM USER',
'listViews' => "SHOW FULL TABLES %sWHERE Table_type = 'VIEW'",
)
[line 34]
API Tags:
Access:  protected


Redefinition of:
Doctrine_Import::$sql

[ Top ]
Methods
listSequences  [line 48]

  array listSequences( [string|null $database = null]  )

lists all database sequences

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefinition of:
Doctrine_Import::listSequences()
lists all database sequences

[ Top ]
listTableColumns  [line 113]

  array listTableColumns( string $table  )

lists table constraints

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefinition of:
Doctrine_Import::listTableColumns()
lists table constraints

[ Top ]
listTableConstraints  [line 64]

  array listTableConstraints( string $table  )

lists table constraints

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefinition of:
Doctrine_Import::listTableConstraints()
lists table constraints

[ Top ]
listTableForeignKeys  [line 103]

  array listTableForeignKeys( string $table  )

lists table foreign keys

Parameters:
string   $table:  database table name

API Tags:
Access:  public


[ Top ]
listTableIndexes  [line 153]

  array listTableIndexes( string $table  )

lists table constraints

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefinition of:
Doctrine_Import::listTableIndexes()
lists table constraints

[ Top ]
listTables  [line 186]

  array listTables( [string|null $database = null]  )

lists tables

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefinition of:
Doctrine_Import::listTables()
lists tables

[ Top ]
listViews  [line 196]

  array listViews( [string|null $database = null]  )

lists database views

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefinition of:
Doctrine_Import::listViews()
lists database views

[ Top ]