Skip to main content

Query Structure

Jelly SQL CSS is a powerful tool that allows you to query the DOM using SQL-like syntax. This page will guide you through the basic structure of a Jelly SQL CSS query.

Basic Structure

A Jelly SQL CSS query consists of the following components:

Select Statement

The SELECT * FROM DOM statement in Jelly SQL serves as the opening statement for a Jelly SQL CSS query. However, at this stage, it is not necessary to include the SELECT * FROM DOM statement in your query, and does not affect the output of the query.

Take this simple query as a example:

SELECT * FROM DOM WHERE
TAG = 'a'

The query above can be simplified to a condition:

TAG = 'a'
note

The SELECT * FROM DOM statement is optional and can be omitted from the query. However, it is recommended to include it for clarity and consistency. In future versions, if the select statement ends up serving a purpose, it will allow backward compatibility with older queries where it was omitted.