Skip to content

script.getQuery ​

Returns the SQL set with script.processUpdateQuery. It doesn't return the SQL configured on the datasource.

js
script.getQuery()

Returns ​

string | null

The SQL, or null if it hasn't been set.

Examples ​

js
const query = script.getQuery();