示例#1
0
文件: utility.php 项目: annaqin/eden
 /**
  * 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_Sqlite_Error::i()->argument(1, 'string');
     $this->_query = 'TRUNCATE "' . $table . '"';
     return $this;
 }
示例#2
0
文件: sqlite.php 项目: annaqin/eden
 /**
  * Returns the select query builder
  *
  * @return Eden_Sql_Select
  */
 public function select($select = 'ROWID,*')
 {
     //Argument 1 must be a string or array
     Eden_Sqlite_Error::i()->argument(1, 'string', 'array');
     return Eden_Sql_Select::i($select);
 }
示例#3
0
文件: create.php 项目: brynner/postr
 /**
  * Sets the name of the table you wish to create
  *
  * @param string name
  * @return this
  */
 public function setName($name)
 {
     //Argument 1 must be a string
     Eden_Sqlite_Error::i()->argument(1, 'string');
     $this->_name = $name;
     return $this;
 }