Skip to main content
Version: 7.2

SessionContext

Per-context database session state applied for row level security (session variables and role).

Index

Properties

Properties

optionalrole

role?: string

Database role to switch to for the duration of the context (set local role / set role).

optionalvariables

variables?: Dictionary<string | number | boolean | Date>

Session variables set via set_config, typically referenced by RLS policies through current_setting(). Date values are serialized to ISO 8601.

Page Options