Expand description
The settings statements run under on a session: the service’s schema first on the search path, the statement’s time bound, and the role it runs as. Whatever holds the session sends these texts, so the platform’s sessions, its migration executor and the native test host set up a session alike.
Enums§
- Scope
- Where a session’s settings apply.
Constants§
- MIGRATION_
RESET - Undoes a
Scope::Sessionmigration_prelude. - ROLE_
NONE - Ends the role a migration ran as within its transaction, so the history row is written as the session’s own role.
Functions§
- migration_
prelude - What a service’s SQL migrations run under: its schema, the statement and lock time bounds, and the role the migrations run as where the run imposes one.
- prelude
- What a guest’s statements run under: the schema is written as every
statement writes it (
folded_ident), so the path a guest’s SQL resolves in, the schema a deploy created and the one a migration ran in are the same schema.roleis the one a session imposes on its connection, where it does. - quote_
ident nameas a quoted SQL identifier, exactly as written.- reset
- Undoes a
Scope::Sessionprelude. - set_
role SET LOCAL ROLEorSET ROLE, asscopesays.