public static function create()
{
$dialectClass = Config::getValue('sql_dialect');
if (!$dialectClass) {
throw new Exception('SQL dialect was not found in config. Please, check for option - sql_dialect.');
}
$dialectClass = new $dialectClass();
if (!$dialectClass instanceof Dialect) {
throw new Exception('Invalid sql_dialect. Dialect have to extend Dialect class.');
}
return $dialectClass;
}