static_grpc_generator 0.1.7 copy "static_grpc_generator: ^0.1.7" to clipboard
static_grpc_generator: ^0.1.7 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, 's3',
      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',
  ));
}
0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

A static grpc generator. Automate you grpc server for relational databases.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

data_db, file_utils, grpc, postgres, static_grpc, static_postgres_orm, strings

More

Packages that depend on static_grpc_generator