@codenotary/immudb-node-grpcjs
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.0 • Public • Published

Generate grpcjs client for immudb .proto file

Prepare schema.proto after updates

It may be neccessery to repair synthax errors in actualized .proto file.

Following lines should be commented:

  • import "google/api/annotations.proto";
  • import "protoc-gen-swagger/options/annotations.proto";

Also:

  • ; semicolon after title: "immudb REST API"; should be removed
  • ; semicolon after info: { ... }; should be removed

Generate grpc client typescript code

npx proto-loader-gen-types `
    --longs=Long `
    --enums=String `
    --bytes=Buffer `
    --defaults `
    --arrays `
    --objects `
    --oneofs `
    --json `
    --grpcLib=@grpc/grpc-js `
    --outDir=src `
    schema.proto

Readme

Keywords

Package Sidebar

Install

npm i @codenotary/immudb-node-grpcjs

Weekly Downloads

65

Version

2.0.0-alpha.0

License

Apache-2.0

Unpacked Size

439 kB

Total Files

496

Last publish

Collaborators

  • tomekkolo
  • iamvs
  • senelalp
  • vchain