Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: get for ws (#10971)
Danny Xu9f9677618309
diff --git a/backend/server/routers.go b/backend/server/routers.goindex e253f3008a..e2557eb7df 100644--- a/backend/server/routers.go+++ b/backend/server/routers.go@@ -77,7 +77,7 @@ func configureEchoRouters(e *echo.Echo, grpcServer *grpc.Server, mux *grpcruntime.GET("/healthz", func(c echo.Context) error {return c.String(http.StatusOK, "OK")})- e.POST("/v1:adminExecute", echo.WrapHandler(wsproxy.WebsocketProxy(+ e.GET("/v1:adminExecute", echo.WrapHandler(wsproxy.WebsocketProxy(mux,wsproxy.WithTokenCookieName("access-token"),// 10M.diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.tsindex 9d2adb7bce..f65987762e 100644--- a/frontend/src/types/proto/v1/sql_service.ts+++ b/frontend/src/types/proto/v1/sql_service.ts@@ -2351,7 +2351,7 @@ export const SQLServiceDefinition = {options: {_unknownFields: {578365826: [- new Uint8Array([18, 34, 16, 47, 118, 49, 58, 97, 100, 109, 105, 110, 69, 120, 101, 99, 117, 116, 101]),+ new Uint8Array([18, 18, 16, 47, 118, 49, 58, 97, 100, 109, 105, 110, 69, 120, 101, 99, 117, 116, 101]),],},},diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex a47452a99b..c6e3d8e39f 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -27288,7 +27288,7 @@ The types come from the Golang SQL driver. </p></td><tr><td>AdminExecute</td>- <td>POST</td>+ <td>GET</td><td>/v1:adminExecute</td><td></td></tr>diff --git a/proto/generated-go/v1/sql_service.pb.go b/proto/generated-go/v1/sql_service.pb.goindex 28d920cbeb..c4d21131ac 100644--- a/proto/generated-go/v1/sql_service.pb.go+++ b/proto/generated-go/v1/sql_service.pb.go@@ -1768,7 +1768,7 @@ var file_v1_sql_service_proto_rawDesc = []byte{0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45,0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x3a, 0x61, 0x64, 0x6d, 0x69,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x3a, 0x61, 0x64, 0x6d, 0x69,0x6e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x78, 0x0a, 0x0d,0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x21, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66,diff --git a/proto/generated-go/v1/sql_service.pb.gw.go b/proto/generated-go/v1/sql_service.pb.gw.goindex a92c3c6b5b..174c01115f 100644--- a/proto/generated-go/v1/sql_service.pb.gw.go+++ b/proto/generated-go/v1/sql_service.pb.gw.go@@ -380,7 +380,7 @@ func RegisterSQLServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux,})- mux.Handle("POST", pattern_SQLService_AdminExecute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("GET", pattern_SQLService_AdminExecute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)@@ -597,7 +597,7 @@ func RegisterSQLServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux,})- mux.Handle("POST", pattern_SQLService_AdminExecute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("GET", pattern_SQLService_AdminExecute_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)diff --git a/proto/v1/sql_service.proto b/proto/v1/sql_service.protoindex f784703ef4..85f86a7455 100644--- a/proto/v1/sql_service.proto+++ b/proto/v1/sql_service.proto@@ -25,7 +25,7 @@ service SQLService {};}rpc AdminExecute(stream AdminExecuteRequest) returns (stream AdminExecuteResponse) {- option (google.api.http) = {post: "/v1:adminExecute"};+ option (google.api.http) = {get: "/v1:adminExecute"};}rpc DifferPreview(DifferPreviewRequest) returns (DifferPreviewResponse) {option (google.api.http) = {