예제 #1
0
 protected function tableInfo($tableName, $buffered = false)
 {
     if ($buffered !== true and array_key_exists($tableName, $this->tableInfo) or !array_key_exists($tableName, $this->tableInfo)) {
         $result = data::query("PRAGMA table_info('" . $tableName . "')");
         $sqliteDriver = $this;
         data::forEachRow($result, function ($r) use($sqliteDriver, $tableName) {
             $sqliteDriver->tableInfo[$tableName][$r->name] = $r;
         });
     }
 }