feat: Add getter actualTableNameStatic

This commit is contained in:
ValentinVignal 2023-09-20 21:42:23 +08:00
parent 3b81babb53
commit 8161d96323
No known key found for this signature in database
GPG Key ID: 040FFDADFB7EF05A
1 changed files with 3 additions and 1 deletions

View File

@ -409,7 +409,9 @@ class TableWriter extends TableOrViewWriter {
..write('@override\nString get aliasedName => '
'_alias ?? \'${table.id.name}\';\n')
..write(
'@override\n String get actualTableName => \'${table.id.name}\';\n');
'@override\n String get actualTableName => \'${table.id.name}\';\n')
..write(
'static String get actualTableNameStatic => \'${table.id.name}\';\n');
_writeValidityCheckMethod();
_writePrimaryKeyOverride();