コード例 #1
0
ファイル: postgre.php プロジェクト: annaqin/eden
 /**
  * Returns the update query builder
  *
  * @return Eden_Sql_Update
  */
 public function update($table = NULL)
 {
     //Argument 1 must be a string or null
     Eden_Postgre_Error::i()->argument(1, 'string', 'null');
     return Eden_Postgre_Update::i($table);
 }
コード例 #2
0
ファイル: utility.php プロジェクト: brynner/postr
 /**
  * Query for truncating a table
  *
  * @param string the name of the table
  * @return this
  */
 public function truncate($table)
 {
     //Argument 1 must be a string
     Eden_Postgre_Error::i()->argument(1, 'string');
     $this->_query = 'TRUNCATE "' . $table . '"';
     return $this;
 }