static_grpc_generator 0.1.0 static_grpc_generator: ^0.1.0 copied to clipboard
A static grpc generator. Automate you grpc server for relational databases.
example/static_grpc_generator_example.dart
import 'package:static_grpc_generator/static_grpc_generator.dart';
import 'package:postgres/postgres.dart';
void main() async {
var connection = PostgreSQLConnection('192.168.1.81', 5432, 'db_teste',
username: 'postgres', password: '1489');
print(await generatePgGrpcService(
connection,
//path: 'example/generated',
path:
'/Volumes/MacDocs/dev/dart/projects/upper_project_sample/lib/services',
subPath: 'lib/src',
schemaInName: false,
//tableName: 'product',
));
// print(await generatePgProto3(
// connection,
// path: 'example/protos',
// //path: '/Volumes/MacDocs/dev/dart/projects/upper_project_sample/protos/',
// schemaInName: false,
// //tableName: 'product',
// ));
}