GrantState constructor
Creates a new GrantState.
columns The columns upon which to grant the privileges. Required when objectType is column. You cannot specify this option if the objectType is not column.
database The database to grant privileges on for this role.
objectType The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column).
objects The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on all objects of the specified type. You cannot specify this option if the objectType is database or schema. When objectType is column, only one value is allowed.
privileges The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE. An empty list could be provided to revoke all privileges for this role.
role The name of the role to grant privileges on, Set it to "public" for all roles.
schema The database schema to grant privileges on for this role (Required except if objectType is "database")
withGrantOption Whether the recipient of these privileges can grant the same privileges to others. Defaults to false.
Implementation
const GrantState({
this.columns,
this.database,
this.objectType,
this.objects,
this.privileges,
this.role,
this.schema,
this.withGrantOption,
});