private function init_sql($name, $options)
{
//are we forcing table creation? If so, drop it first
if (array_key_exists('force', $options) && $options['force'] == true) {
try {
$this->_adapter->drop_table($name);
} catch (Ruckusing_Exception $e) {
if ($e->getCode() != Ruckusing_Exception::MISSING_TABLE) {
throw $e;
}
//do nothing
}
}
$temp = "";
if (array_key_exists('temporary', $options)) {
$temp = " TEMPORARY";
}
$create_sql = sprintf("CREATE%s TABLE ", $temp);
$create_sql .= sprintf("%s (\n", $this->_adapter->identifier($name));
$this->_sql .= $create_sql;
$this->_initialized = true;
}