-- name: ListScripts :many
SELECT * FROM script;

-- name: SaveScript :exec
REPLACE INTO script (name, data) VALUES (?, ?);

-- name: ListScriptVariables :many
SELECT * FROM script_variable;

-- name: UpdateScriptVariables :exec
REPLACE INTO script_variable (scope, name, value) VALUES (?, ?, ?);