Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • rqlcontroller rqlcontroller
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cubicweb
  • cubes
  • rqlcontrollerrqlcontroller
  • Merge requests
  • !1

Closed
Created Mar 20, 2020 by Laurent Wouters@lwoutersDeveloper
  • Report abuse
Report abuse

Enable answering RQL select queries with symbolic bindings

  • Overview 0
  • Commits 1
  • Changes 1

This introduces a version 2.0 of the rqlio protocol that is able to answer select RQL queries with symbolic bindings (with the names of the selected variables) instead of the positional rows. Because this breaks compatibility with the 1.0 protocol, this change warrants a new version. The previous version continues to work alongside the new one.

The end result is the ability to answer the query Any X WHERE X is CWEtype with { 'rows': [{'X': 101}, {'X': 102}, {'X': 103}, ...], 'variables': ['X'] } instead of [[101], [102], [103], ...]

In protocol version 2.0, when there are no variable names, the variables member is simply empty. In addition, the value of the 'rows' member of the response object is exactly the same as the total response in the previous protocol, which should help write fallback code in client libraries.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: topic/default/rqliov2