static_grpc_generator 0.0.1-dev static_grpc_generator: ^0.0.1-dev 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() {
var connection = PostgreSQLConnection('192.168.1.81', 5432, 'db_teste',
username: 'postgres', password: '1489');
generatePgGrpcService(
connection,
//path: 'example/generated',
path:
'/Volumes/MacDocs/dev/dart/projects/upper_project_sample/lib/services/grpc_product/lib/src/',
schemaInName: false,
//tableName: 'product',
);
generatePgProto3(
connection,
//path: 'example/protos',
path: '/Volumes/MacDocs/dev/dart/projects/upper_project_sample/protos/',
schemaInName: false,
//tableName: 'product',
);
}