writeInto function
Implementation
Future<bool> writeInto(
List<Table> tables,
String targetFile, {
String? header,
Map<String, String>? imports,
bool targetCockroachDB = false,
bool format = true,
}) async {
return await writeIntoFile(tables, File(targetFile), (List<Table> items) {
final src = generateSource(
items,
imports: imports,
targetCockroachDB: targetCockroachDB,
);
return '${header ?? ''}$src';
}, format);
}