PostgresGrantDefinition
PostgreSQL grant definition for schema and table privileges. Implements [RLS-PG-SUPPORT-DDL].
public sealed record PostgresGrantDefinition : IEquatable<PostgresGrantDefinition>
Properties
Schema
public string Schema { get; init; }
Target schema.
Target
public PostgresGrantTarget Target { get; init; }
Grant target kind.
ObjectName
public string? ObjectName { get; init; }
Table name when is.
Privileges
public IReadOnlyList<string> Privileges { get; init; }
Privileges to grant, such as USAGE, SELECT, or INSERT.
Roles
public IReadOnlyList<string> Roles { get; init; }
Roles receiving the privileges.
RunAs
public string? RunAs { get; init; }
PostgreSQL role used only while applying this grant. Useful when a migration role is a member of the schema owner role but is not itself the schema owner.