writeGlobalSchemaFile method
Writes the schema Dart file containing the globalSupabaseSchema variable.
Implementation
Future<void> writeGlobalSchemaFile() async {
final schemaContent = _generateSchemaDartFileContent();
final filePath = '${config.generatedSupabaseSchemaDartFilePath}';
try {
await _writeFile(filePath, schemaContent);
_logger.info('Successfully generated global schema file: $filePath');
} catch (e) {
_logger.severe('Failed to write global schema file: $e');
rethrow;
}
}