extractTableNameInSQL static method
Implementation
static String? extractTableNameInSQL(String tableSQL) {
var match = RegExp(
r'''(?:^|\s)(?:CREATE|ALTER)\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?['"`]?(\w+)['"`]?''')
.firstMatch(tableSQL);
return match?.group(1);
}