getCol() public method

See also: Adapter::getCol
public getCol ( $sql, $bindings = [] )
示例#1
0
文件: rb.php 项目: WTer/NJB
 /**
  * @see QueryWriter::getTables
  */
 public function getTables()
 {
     return $this->adapter->getCol('SELECT table_name FROM information_schema.tables WHERE table_schema = ANY( current_schemas( FALSE ) )');
 }
示例#2
0
 /**
  * @see QueryWriter::getTables
  */
 public function getTables()
 {
     return $this->adapter->getCol("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'");
 }
示例#3
0
 /**
  * @see QueryWriter::getTables
  */
 public function getTables()
 {
     return $this->adapter->getCol('SELECT * FROM sys.Tables');
 }
示例#4
0
 /**
  * @see QueryWriter::getTables
  */
 public function getTables()
 {
     return $this->adapter->getCol('show tables');
 }
示例#5
0
 /**
  * @see QueryWriter::getTables
  */
 public function getTables()
 {
     $rows = $this->adapter->getCol("SELECT class_name FROM db_class WHERE is_system_class = 'NO';");
     return $rows;
 }
示例#6
0
 /**
  * @see QueryWriter::getTables();
  */
 public function getTables()
 {
     return $this->adapter->getCol("SELECT name FROM sqlite_master\n\t\t\tWHERE type='table' AND name!='sqlite_sequence';");
 }