Skip to main content

run

Function run 

Source
pub fn run(
    schema_path: &str,
    output_dir: &str,
    package: &str,
    dialect_name: &str,
    formatter: &OutputFormatter,
) -> Result<()>
Expand description

Run the generate-proto command.

Reads a compiled schema and writes three files to the output directory:

  • service.proto โ€” proto3 service definition
  • vr_migrations.sql โ€” row-shaped view DDL for the gRPC transport
  • descriptor.binpb โ€” serialized FileDescriptorSet for gRPC reflection

ยงErrors

Returns an error if the schema cannot be loaded, the dialect is unknown, or the output files cannot be written.