/Crystal/Manipulation/Postgres/Rename.php
PHP | 48 lines | 14 code | 21 blank | 13 comment | 0 complexity | 8d2adb8ff1513f3350759cdb09e1c860 MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- /**
- * Crystal DBAL
- *
- * An open source application for database manipulation
- *
- * @package Crystal DBAL
- * @author Martin Rusev
- * @link http://crystal.martinrusev.net
- * @since Version 0.1
- * @version 0.1
- */
- // ------------------------------------------------------------------------
- class Crystal_Manipulation_Postgres_Rename
- {
-
- function __construct($method, $params)
- {
-
-
-
- $this->rename = "RENAME TABLE" . Crystal_Helper_Postgres::add_single_quote($params[0]);
-
- $this-> rename .= "TO";
-
- $this->rename .= Crystal_Helper_Postgres::add_single_quote($params[1]);
-
-
- }
-
-
-
- public function __toString()
- {
- return $this->rename;
- }
-
-
- }
- //RENAME TABLE current_db.tbl_name TO other_db.tbl_name;