createProjectFiles function
Future<bool>
createProjectFiles(
- PostgreSQLConnection connection, {
- required String path,
- required String name,
- bool schemaInName = false,
})
Implementation
Future<bool> createProjectFiles(PostgreSQLConnection connection,
{required String path,
required String name,
bool schemaInName = false}) async {
print('Creating project files. . .');
var fullpath = '$path/$name';
return generatePgProto3(
connection,
path: '$fullpath/protos',
schemaInName: schemaInName,
).then((value) async =>
value &&
await generatePgGrpcService(
connection,
path: '$fullpath/lib/services',
subPath: 'lib/src',
schemaInName: schemaInName,
).then((value) async =>
value &&
await generatePgOrm(
connection,
path: '$fullpath/lib/services',
subPath: 'lib/src',
schemaInName: schemaInName,
).then((value) async =>
value &&
await createProjectAdditionalFiles(
connection,
path: path,
name: name,
schemaInName: schemaInName,
))));
}