Header

Query structure


Each Operon-query follows the same basic structure shown below:

From
  component-name:component-configuration
Select expr


Better understanding can be achieved by looking the actual grammar-definition, which is shown below.

operon
	: import_stmt*
	  from
	  (function_stmt | let_stmt | 
	   bind_value_expr | update_value_expr)*
	  exception_stmt?
	  select



Below is a brief outline of each statement:

  • Import: Allows importing Operon-code from modules
  • From: Defines the root-context for the query
  • Function: User-defined function
  • Let: User defined value
  • Bind Value: User defined operator-overloading
→ DEPRECATED: Update Value Allows overriding the default value lifecycle
  • Select: Tells what the query should return
  • Exception: Allows defining custom exception-handling



Backlinks:
Operon.io:Introduction:JSON-dataformat