-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hubble): support highlighting and hints in query statements (#384)
- Loading branch information
1 parent
e02b7d1
commit 507d9a0
Showing
2 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
hugegraph-hubble/hubble-fe/src/components/graph-management/data-analyze/GremlinKeyWords.ts
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,28 @@ | ||
export const keywords = | ||
'g|V|E|has|open|close|inV|inE|out|outV|outE|label|store|next|addVertex|clazz|' + | ||
'limit|traversal|withBulk|values|schema|except|ifNotExist|addEdge|addVertex|property|io|' + | ||
'filter|loops|readGraph|tree|properties|graph|value|bothE|addV|where|hidden|bothV|without' + | ||
'both|is|path|it|get|from|to|select|otherV|within|inside|outside|withSack'; | ||
|
||
export const buildinFunctions = | ||
'targetLabel|sourceLabel|indexLabel|indexLabels|edgeLabel|vertexLabel|propertyKey|getPropertyKey|' + | ||
'getVertexLabel|getEdgeLabel|getIndexLabel|getPropertyKeys|getVertexLabels|getEdgeLabels|getIndexLabels|' + | ||
'coin|count|coalesce|createIndex|hasLabel|getLabelId|create|build|append|eliminate|remove|rebuildIndex|' + | ||
'constant|isDirected|desc|inject|profile|simplePath|eq|neq|gt|gte|lt|lte|queryType|indexFields|frequency|' + | ||
'links|type|in|on|by|checkDataType|checkValue|validValue|secondary|drop|search|makeEdgeLabel|cyclicPath|' + | ||
'hasKey|match|sack|aggregate|between|baseType|baseValue|indexType|rebuild|choose|aggregate|iterate|lte|dedup|' + | ||
'identity|groupCount|until|barrier|fold|unfold|schemaId|checkName|makeIndexLabel|makeVertexLabel|makePropertyKey|' + | ||
'sideEffect|hasNext|toList|toSet|cap|option|branch|choose|repeat|emit|order|mean|withComputer|subgraph|' + | ||
'getObjectsAtDepth|hasValue|hasNot|hasId|nullableKey|nullableKeys|sortKeys|link|singleTime|multiTimes|' + | ||
'enableLabelIndex|userdata|checkExist|linkWithLabel|directed|idStrategy|primaryKeys|primaryKey'; | ||
|
||
export const dataTypes = | ||
'int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|toString|primitive|' + | ||
'money|real|number|integer|asInt|asText|dataType|cardinality|asText|asInt|asTimestamp|flatMap|valueMap|' + | ||
'asByte|asBlob|asDouble|asDate|asFloat|asLong|valueSingle|asBoolean|valueList|valueSet|asUuid|null|Infinity|NaN|undefined'; | ||
|
||
export const baseData = [ | ||
...keywords.split('|'), | ||
...buildinFunctions.split('|'), | ||
...dataTypes.split('|') | ||
]; |
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