{"repo":"walterwanderley/sqlc-grpc","free":true,"listed":false,"github":"https://github.com/walterwanderley/sqlc-grpc","clone":"git clone https://github.com/walterwanderley/sqlc-grpc.git","description":"Create a gRPC server from code generated by sqlc","language":"Go","stars":158,"topics":["grpc","sqlc","sqlite"],"license":"MIT","category":"databases-storage","readme_excerpt":"sqlc-grpc Create a gRPC (and HTTP/JSON ) Server from the generated code by the awesome sqlc project. If you’re searching for a SQLC plugin, use sqlc-gen-go-server. Requirements - Go 1.26 or superior - buf Installation Example 1. Create a queries.sql file: 2. Create a sqlc.yaml file 3. Execute sqlc-grpc 4. Run the generated server 5. Enjoy! - Swagger UI http://localhost:5000/swagger Highly Availability SQLite with go-ha Example: https://github.com/walterwanderley/sqlc-grpc/tree/main/ examples/authors/sqlite Customizing HTTP endpoints You can customize the HTTP endpoints generated by grpc-gateway by adding comments to the queries. Here’s an example of a queries file that has a custom HTTP endpoint: Editing the generated code - It's safe to edit any generated code that doesn't have the DO NOT EDIT indication at the very first line. - After modify a SQL file, execute the command below: - After modify a .proto file, execute buf generate . Similar Projects - xo-grpc","default_branch":null,"files":null,"tree":[],"storefront":"/r/walterwanderley","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/walterwanderley/sqlc-grpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}