Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Subquery #1

@tommasop

Description

@tommasop

SELECT and SELECT EXPAND queries can have a FROM subquery but it must be initialized before it can be built:

  query = Rorient::Query.select(ODB)
  query.subquery
  query.subquery.from(Event).where{ name('Rorient Conference') }

It would be nice to have a block defining the subquery:

  query = Rorient::Query.select(ODB).subquery{ from(Event).where{ name('Rorient Conference') } }.fields("name","surname").osql
  # => SELECT name,surname FROM (SELECT FROM Entity WHERE name = 'Rorient Conference') /-1

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions