This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: TQL documentation and specification
- Loading branch information
Showing
4 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# TQL (Time Query Language) | ||
|
||
Time trace is using a query language called TQL. Here is documentation and specification for TQL. | ||
|
||
|
||
# Commands and Operations | ||
|
||
| Command | Action | Arguments | | ||
|----------|:-------------|:------| | ||
| CON | to make a connection and access to database | username - password | | ||
| SET | make a new set | set-name | | ||
| SSET | make a new subset | set-name - subset-name | | ||
| PUSH | push an element to a subset | set-name - subset-name - value-of-element - time(unix-timestamp) | | ||
| GET | get elements of a subset | set-name - subset-name - [last n elements (optional)] - [regex filter] - [unix-timestamp]| | ||
| CNTSS | returns count of subsets | set-name | | ||
| CNTE | returns count of elements | set-name - subset-name | | ||
| CLNS | cleans all sub-sets of a set | set-name | | ||
| CLNSS | cleans all elements of a subset | set-name - subset-name | | ||
| DRPS | drops a set | set-name | | ||
| DRPSS | drops a subset | set-name - subset-name | | ||
| SS | takes a sanp-shot | file-name(example.ttrace) | | ||
|
||
|
||
# A TQL Server Responses | ||
|
||
| Message | reason | | ||
|----------|:-------------| | ||
| DONE | everything is ok | | ||
| INVALID | invalid user and password to make a connection OR not enough args for a command | | ||
| SNF | set is not found | | ||
| SSNF | subset is not found | | ||
| ENF | element(s) is not found | | ||
| [DATA separated by space] (key-time key-time key-time) | GET successful response | |