Package app.hypi.mekadb.client
Interface MekaDBClientGrpc.AsyncService
-
- All Known Implementing Classes:
MekaDBClientGrpc.MekaDBClientImplBase
- Enclosing class:
- MekaDBClientGrpc
public static interface MekaDBClientGrpc.AsyncService
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidauthenticate(AuthReq request, io.grpc.stub.StreamObserver<AuthCtx> responseObserver)Log into a database to obtain an authentication context that can be used to execute SQL queriesdefault io.grpc.stub.StreamObserver<SqlRequest>sqlWithJsonResponse(io.grpc.stub.StreamObserver<SqlResponse> responseObserver)Executes the SQL query given and returns a JSON array response as a string.
-
-
-
Method Detail
-
authenticate
default void authenticate(AuthReq request, io.grpc.stub.StreamObserver<AuthCtx> responseObserver)
Log into a database to obtain an authentication context that can be used to execute SQL queries
-
sqlWithJsonResponse
default io.grpc.stub.StreamObserver<SqlRequest> sqlWithJsonResponse(io.grpc.stub.StreamObserver<SqlResponse> responseObserver)
Executes the SQL query given and returns a JSON array response as a string. The JSON array contains objects where each key is the name of the column, lowercased. For example a table with the columns username, Age and CITY will return [{"username":"Courtney","age":1,"city":"San Francisco"}] i.e. the column names are lower cased, the values are the original as inserted into the table If there are no results, the string returned will always be "[]" i.e. you can always parse the string and assume there is a JSON array but it can be an empty array
-
-