예제 #1
0
파일: DbInit.php 프로젝트: sigma-z/dive
 /**
  * (re)create view
  *
  * @param PlatformInterface $platform
  * @param string            $viewName
  */
 private function createView(PlatformInterface $platform, $viewName)
 {
     $sqlStatement = $this->schema->getViewStatement($viewName);
     $sql = $platform->getCreateViewSql($viewName, $sqlStatement);
     $this->conn->exec($sql);
 }
예제 #2
0
파일: SchemaTest.php 프로젝트: sigma-z/dive
 public function testGetViewStatement()
 {
     $sqlStatement = $this->schema->getViewStatement('author_user_view');
     $this->assertTrue(false !== stripos($sqlStatement, 'SELECT'));
 }