コード例 #1
0
ファイル: CachedTableTest.php プロジェクト: sbuberl/fSQL
 public function testTemporary()
 {
     $table = new CachedTable($this->schema, 'newTable');
     $this->assertFalse($table->temporary());
     $tempTable = TempTable::create($this->schema, 'blah2', self::$columns);
     $this->assertTrue($tempTable->temporary());
 }
コード例 #2
0
ファイル: Schema.php プロジェクト: sbuberl/fSQL
 public function createTable($table_name, array $columns, $temporary = false)
 {
     if (!$temporary) {
         return CachedTable::create($this, $table_name, $columns);
     } else {
         $table = TempTable::create($this, $table_name, $columns);
         $this->loadedTables[$table_name] = $table;
         return $table;
     }
 }