Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
registry.executeQuery("/path/to/storedQuery", parameter_map); // parameter map contains key value pairs required by the query

...

hiddentrue

...

Forming custom queries

Custom Queries interface allows the user to search the registry using a custom SQL queries. In a custom query, the user is expected to return one of the following items.

...

Querying for resources by properties

You can query can query for resources by a resources by a special property values. Before that we we will check the schema of the properties tables.

...

1. If the properties versioning is set true (which is the default), the foreign key relationship happens in the following way.

Image RemovedImage Added

For example, the following query returns one or more resources that have a given property.

...

2. If the versioning properties is set to false, then the foreign key in focus are:

Image RemovedImage Added

In this mode, you should write separate queries to retrieve collections and non-collections.

...

Similar to properties, tags are also stored in two modes. Here is when versioning tags are set to{{true}}.

Image RemovedImage AddedImage Added

For example, the following query returns one or more resources that have a given tag.

...

If the versioning tags is set to false, then the foreign key in focus is:

Image RemovedImage Added

In this mode you should write separate queries to retrieve collections and non-collections.

...