Post

zztkm
zztkm@zztkm·
sqlc plugin は gRPC なんだよな
日本語
1
0
1
338
sqlc
sqlc@sqlcdev·
@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.
English
1
0
1
100
zztkm
zztkm@zztkm·
@sqlcdev I was just looking at it. It will be helpful.
English
1
0
0
35
sqlc
sqlc@sqlcdev·
@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.
English
1
0
1
50
zztkm
zztkm@zztkm·
@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.
English
0
0
1
51
Paylaş