Module: Glql
- Defined in:
- lib/gitlab_query_language/version.rb,
lib/gitlab_query_language.rb
Overview
Do not edit manually. The gem version is managed by the CI build job through scripts/create_release.sh. This version is kept in sync with the root Cargo.toml version. A version bump will trigger a gem release.
Constant Summary collapse
- Error =
Class.new(StandardError)
- VERSION =
"0.20.11"
Class Method Summary collapse
Class Method Details
.compile(query, context) ⇒ Object
18 19 20 21 |
# File 'lib/gitlab_query_language.rb', line 18 def compile(query, context) result_json = compile_rs(query, context.to_json) JSON.parse(result_json) end |
.transform(data, context) ⇒ Object
23 24 25 26 |
# File 'lib/gitlab_query_language.rb', line 23 def transform(data, context) result_json = transform_rs(data.to_json, context.to_json) JSON.parse(result_json) end |