@@ -64,14 +64,15 @@ message VersionDummy { // We need to wrap it like this for some
6464// * A [STOP] query with the same token as a [START] query that you want to stop.
6565// * A [NOREPLY_WAIT] query with a unique per-connection token. The server answers
6666// with a [WAIT_COMPLETE] [Response].
67+ // * A [SERVER_INFO] query. The server answers with a [SERVER_INFO] [Response].
6768message Query {
6869 enum QueryType {
69- START = 1 ; // Start a new query.
70- CONTINUE = 2 ; // Continue a query that returned [SUCCESS_PARTIAL]
71- // (see [Response]).
72- STOP = 3 ; // Stop a query partway through executing.
73- NOREPLY_WAIT = 4 ;
74- // Wait for noreply operations to finish .
70+ START = 1 ; // Start a new query.
71+ CONTINUE = 2 ; // Continue a query that returned [SUCCESS_PARTIAL]
72+ // (see [Response]).
73+ STOP = 3 ; // Stop a query partway through executing.
74+ NOREPLY_WAIT = 4 ; // Wait for noreply operations to finish.
75+ SERVER_INFO = 5 ; // Get server information .
7576 }
7677 optional QueryType type = 1 ;
7778 // A [Term] is how we represent the operations we want a query to perform.
@@ -120,6 +121,9 @@ message Response {
120121 // more of the sequence. Keep sending [CONTINUE]
121122 // queries until you get back [SUCCESS_SEQUENCE].
122123 WAIT_COMPLETE = 4 ; // A [NOREPLY_WAIT] query completed.
124+ SERVER_INFO = 5 ; // The data for a [SERVER_INFO] request. This is
125+ // the same as `SUCCESS_ATOM` except that there will
126+ // never be profiling data.
123127
124128 // These response types indicate failure.
125129 CLIENT_ERROR = 16 ; // Means the client is buggy. An example is if the
@@ -174,8 +178,9 @@ message Response {
174178
175179 optional int64 token = 2 ; // Indicates what [Query] this response corresponds to.
176180
177- // [response] contains 1 RQL datum if [type] is [SUCCESS_ATOM], or many RQL
178- // data if [type] is [SUCCESS_SEQUENCE] or [SUCCESS_PARTIAL]. It contains 1
181+ // [response] contains 1 RQL datum if [type] is [SUCCESS_ATOM] or
182+ // [SERVER_INFO]. [response] contains many RQL data if [type] is
183+ // [SUCCESS_SEQUENCE] or [SUCCESS_PARTIAL]. [response] contains 1
179184 // error message (of type [R_STR]) in all other cases.
180185 repeated Datum response = 3 ;
181186
@@ -227,8 +232,6 @@ message Datum {
227232 optional Datum val = 2 ;
228233 }
229234 repeated AssocPair r_object = 6 ;
230-
231- extensions 10000 to 20000;
232235}
233236
234237// A [Term] is either a piece of data (see **Datum** above), or an operator and
@@ -383,6 +386,8 @@ message Term {
383386 // | Sequence, STRING -> Sequence
384387 // Return an array containing the keys of the object.
385388 KEYS = 94 ; // OBJECT -> ARRAY
389+ // Return an array containing the values of the object.
390+ VALUES = 186 ; // OBJECT -> ARRAY
386391 // Creates an object
387392 OBJECT = 143 ; // STRING, DATUM, ... -> OBJECT
388393 // Check whether an object contains all the specified fields,
@@ -554,7 +559,7 @@ message Term {
554559 INDEX_LIST = 77 ; // Table -> ARRAY
555560 // Gets information about whether or not a set of indexes are ready to
556561 // be accessed. Returns a list of objects that look like this:
557- // {index:STRING, ready:BOOL[, blocks_processed:NUMBER, blocks_total :NUMBER]}
562+ // {index:STRING, ready:BOOL[, progress :NUMBER]}
558563 INDEX_STATUS = 139 ; // Table, STRING... -> ARRAY
559564 // Blocks until a set of indexes are ready to be accessed. Returns the
560565 // same values INDEX_STATUS.
@@ -779,8 +784,6 @@ message Term {
779784 repeated AssocPair optargs = 4 ; // Holds the optional arguments of the query.
780785 // (Note that the order of the optional arguments doesn't matter; think of a
781786 // Hash.)
782-
783- extensions 10000 to 20000;
784787}
785788
786789////////////////////////////////////////////////////////////////////////////////
0 commit comments