Skip to content

Add support to aggregate multiple queries into a single response #17

Open

Description

@php-coder

It should be possible to return a multiple members where each of them are came from different queries.

  • python support
  • golang support
  • javascript support
  • add documentation
  • add tests

Activity

  1. php-coder commented on Sep 11, 2022

    @php-coder
    OwnerAuthor

    Example of a response:

    {
      "num_of_categories": 5,
      "num_of_countries": 10
      "num_of_series": 100
    }

    And possible syntax:

    - path: /v1/stat
      get:
        queries:
          num_of_categories: SELECT COUNT(*) FROM categories
          num_of_countries:  SELECT COUNT(*) FROM countries
          num_of_series:     SELECT COUNT(*) FROM series

    OR

    - path: /v1/stat
      get:
        aggregated_query:
          num_of_categories: SELECT COUNT(*) FROM categories
          num_of_countries:  SELECT COUNT(*) FROM countries
          num_of_series:     SELECT COUNT(*) FROM series

    OR

    - path: /v1/stat
      get:
        query:
          aggregate:
            num_of_categories: SELECT COUNT(*) FROM categories
            num_of_countries:  SELECT COUNT(*) FROM countries
            num_of_series:     SELECT COUNT(*) FROM series
  2. self-assigned this
    on Sep 29, 2022
  3. added this to the 0.0.3 milestone on Sep 29, 2022
  4. modified the milestones: 0.0.3, 0.0.4 on Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions