3 * TMysqlTableInfo class file.
5 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6 * @link http://www.pradosoft.com/
7 * @copyright Copyright © 2005-2013 PradoSoft
8 * @license http://www.pradosoft.com/license/
9 * @version $Id: TMysqlTableInfo.php 3245 2013-01-07 20:23:32Z ctrlaltca $
10 * @package System.Data.Common.Mysql
14 * Loads the base TDbTableInfo class and TMysqlTableColumn class.
16 Prado::using('System.Data.Common.TDbTableInfo');
17 Prado::using('System.Data.Common.Mysql.TMysqlTableColumn');
20 * TMysqlTableInfo class provides additional table information for MySQL database.
22 * @author Wei Zhuo <weizho[at]gmail[dot]com>
23 * @version $Id: TMysqlTableInfo.php 3245 2013-01-07 20:23:32Z ctrlaltca $
24 * @package System.Data.Common.Mysql
27 class TMysqlTableInfo extends TDbTableInfo
30 * @return string name of the schema this column belongs to.
32 public function getSchemaName()
34 return $this->getInfo('SchemaName');
38 * @return string full name of the table, database dependent.
40 public function getTableFullName()
42 if(($schema=$this->getSchemaName())!==null)
43 return '`'.$schema.'`.`'.$this->getTableName().'`';
45 return '`'.$this->getTableName().'`';
49 * @param TDbConnection database connection.
50 * @return TDbCommandBuilder new command builder
52 public function createCommandBuilder($connection)
54 Prado::using('System.Data.Common.Mysql.TMysqlCommandBuilder');
55 return new TMysqlCommandBuilder($connection,$this);