示例#1
0
文件: BaseTest.php 项目: sbuberl/fSQL
 public function setUp()
 {
     if (file_exists(self::$tempDir)) {
         Utilities::deleteDirectory(self::$tempDir);
     }
     mkdir(self::$tempDir);
 }
示例#2
0
文件: Schema.php 项目: sbuberl/fSQL
 public function drop()
 {
     $tables = $this->listTables();
     foreach ($tables as $table) {
         $this->dropTable($table);
     }
     if ($this->sequencesFile->exists()) {
         $this->sequencesFile->drop();
     }
     if ($this->name !== 'public') {
         Utilities::deleteDirectory($this->path);
     }
 }