Documentation
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

is_sundeck_ddl

is_sundeck_ddl returns whether the SQL query matches any Sundeck DDL.

Syntax

  IS_SUNDECK_DDL()

Returns

TRUE
If the SQL query matches any Sundeck DDL.
FALSE
If the SQL query doesn’t match any Sundeck DDL.

Examples

CREATE SUNDECK FLOW FLOW_WITH_DAILY_LIMIT
       PRE HOOK USER_CONSUMPTION_HOOK
       IF NOT IS_SUNDECK_DDL()
       THEN DAILY_LIMITS { 'limitBy': 'User', 'maxCredits': 5}

CREATE SUNDECK FLOW FLOW_TO_REJECT_SUNDECK_QUERIES
       PRE HOOK REJECT_SUNDECK_DDL_HOOK
       IF IS_SUNDECK_DDL()
       THEN reject {'rejectMessage': $$This flow doesn't allow Sundeck DDL queries to be submitted.$$}