Skip to main content

Constants for the fields of the /grant/permission request.

Option fields

object_type

Constants for object_type.

pub const CATALOG: &str = “catalog”;

Catalog

pub const CONTEXT: &str = “context”;

Context

pub const CREDENTIAL: &str = “credential”;

Credential

pub const DATASINK: &str = “datasink”;

Data Sink

pub const DATASOURCE: &str = “datasource”;

Data Source

pub const DIRECTORY: &str = “directory”;

KIFS File Directory

pub const GRAPH: &str = “graph”;

A Graph object

pub const PROC: &str = “proc”;

UDF Procedure

pub const SCHEMA: &str = “schema”;

Schema

pub const SQL_PROC: &str = “sql_proc”;

SQL Procedure

pub const SYSTEM: &str = “system”;

System-level access

pub const TABLE: &str = “table”;

Database Table

pub const TABLE_MONITOR: &str = “table_monitor”;

Table monitor

options

Constants for options.

pub const COLUMNS: &str = “columns”;

Apply table security to these columns, comma-separated.

pub const FALSE: &str = “false”;
pub const FILTER_EXPRESSION: &str = “filter_expression”;

Filter expression to apply to this grant. Only rows that match the filter will be affected.

pub const TRUE: &str = “true”;
pub const WITH_GRANT_OPTION: &str = “with_grant_option”;

Allow the recipient to grant the same permission (or subset) to others.

permission

Constants for permission.

pub const ADMIN: &str = “admin”;

Full read/write and administrative access on the object.

pub const CONNECT: &str = “connect”;

Connect access on the given data source or data sink.

pub const CREATE: &str = “create”;

Ability to create new objects of this type.

pub const DELETE: &str = “delete”;

Delete rows from tables.

pub const EXECUTE: &str = “execute”;

Ability to Execute the Procedure object.

pub const INSERT: &str = “insert”;

Insert access to tables.

pub const MONITOR: &str = “monitor”;

Monitor logs and statistics.

pub const READ: &str = “read”;

Ability to read, list and use the object.

pub const SEND_ALERT: &str = “send_alert”;

Ability to send system alerts.

pub const UPDATE: &str = “update”;

Update access to the table.

pub const USER_ADMIN: &str = “user_admin”;

Access to administer users and roles that do not have system_admin permission.

pub const WRITE: &str = “write”;

Access to write, change and delete objects.