@zztkm Yes, basically. The messages sqlc sends and receives from plugins are proto, and we implement a gRPC-like interface over stdin and stdout. Take a look at github.com/sqlc-dev/plugi… for an example in Go.
@zztkm Are you writing a plugin in Go or something else? We will likely expose the internal/rpc interface soon so that a Go plugin can actually just implement the gRPC server interface directly and hand that to the sdk.
@sqlcdev I haven't written it yet, but I was in the process of learning about how the plugin works because I sent a PR to sqlc-gen-python and decided to try to make one for myself.