src/Table.php
public function create()
        {
            $sql = $this->generateCreateSql();
            $query = new RawQuery($sql);
            try {
                $this->drop();
                return Statement::getPreparedStatement($query)->execute();
            } catch (\Exception $e) {
                throw new Exception('Error creating table ' . $this->getB2DBName() . ': ' . $e->getMessage(), $sql);
            }
        }
public function create()
        {
            $sql = $this->generateCreateSql();
            $query = new RawQuery($sql);
            try {
                $this->drop();
                return Statement::getPreparedStatement($query)->execute();
            } catch (\Exception $e) {
                throw new Exception('Error creating table ' . $this->getB2DBName() . ': ' . $e->getMessage(), $sql);
            }
        }
public function create ( ) { $ sql = $ this -> generateCreateSql ( ) ; $ query = new RawQuery ( $ sql ) ; try { $ this -> drop ( ) ; return Statement :: getPreparedStatement ( $ query ) -> execute ( ) ; } catch ( \ Exception $ e ) { throw new Exception ( 'Error creating table ' . $ this -> getB2DBName ( ) . ': ' . $ e -> getMessage ( ) , $ sql ) ; } }
creates the table by executing the sql create statement

@return Resultset
creates the table by executing the sql create statement