@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:29.529Z") @Stability(value=Experimental) public enum TableAction extends Enum<TableAction>
Example:
String databaseName = "databaseName"; String username = "myuser"; String tableName = "mytable"; User user = User.Builder.create(this, "User") .username(username) .cluster(cluster) .databaseName(databaseName) .build(); Table table = Table.Builder.create(this, "Table") .tableColumns(List.of(Column.builder().name("col1").dataType("varchar(4)").build(), Column.builder().name("col2").dataType("float").build())) .cluster(cluster) .databaseName(databaseName) .build(); table.grant(user, TableAction.INSERT);
Enum Constant and Description |
---|
ALL
(experimental) Grants all available privileges at once to the specified user or user group.
|
DELETE
(experimental) Grants privilege to delete a data row from a table.
|
DROP
(experimental) Grants privilege to drop a table.
|
INSERT
(experimental) Grants privilege to load data into a table using an INSERT statement or a COPY statement.
|
REFERENCES
(experimental) Grants privilege to create a foreign key constraint.
|
SELECT
(experimental) Grants privilege to select data from a table or view using a SELECT statement.
|
UPDATE
(experimental) Grants privilege to update a table column using an UPDATE statement.
|
Modifier and Type | Method and Description |
---|---|
static TableAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final TableAction SELECT
@Stability(value=Experimental) public static final TableAction INSERT
@Stability(value=Experimental) public static final TableAction UPDATE
@Stability(value=Experimental) public static final TableAction DELETE
@Stability(value=Experimental) public static final TableAction DROP
@Stability(value=Experimental) public static final TableAction REFERENCES
You need to grant this privilege on both the referenced table and the referencing table; otherwise, the user can't create the constraint.
@Stability(value=Experimental) public static final TableAction ALL
public static TableAction[] values()
for (TableAction c : TableAction.values()) System.out.println(c);
public static TableAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023. All rights reserved.