static function fromTable($table) { $query = new ShowCreateTable($table); try { $res = \Radical\DB::Q($query->toSQL()); $data = $res->Fetch(DBAL\Fetch::NUM); } catch (\Exception $ex) { throw new \Exception('Couldnt get Create Table (' . $ex->getMessage() . ') for ' . $table, null, $ex); } return new static($data[1]); }