(dbml: string)
| 693 | |
| 694 | // Fix table definitions with incorrect bracket syntax |
| 695 | const fixTableBracketSyntax = (dbml: string): string => { |
| 696 | // Fix patterns like Table [schema].[table] to Table "schema"."table" |
| 697 | return dbml.replace( |
| 698 | /Table\s+\[([^\]]+)\]\.\[([^\]]+)\]/g, |
| 699 | 'Table "$1"."$2"' |
| 700 | ); |
| 701 | }; |
| 702 | |
| 703 | // Fix table names that have been broken across multiple lines |
| 704 | const fixMultilineTableNames = (dbml: string): string => { |
no outgoing calls
no test coverage detected