Helper function to call a custom SQL function
The name of the function to call
Arguments to pass to the function
A ConditionChain that can be chained with .and() or .or()
policy('custom_access') .on('data') .for('SELECT') .when(call('check_permission', ['user_id', 'read'])) Copy
policy('custom_access') .on('data') .for('SELECT') .when(call('check_permission', ['user_id', 'read']))
Helper function to call a custom SQL function