Package dev.frostlake.metastore.model
Class RowAccessPolicy
java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.RowAccessPolicy
- All Implemented Interfaces:
Taggable
Snowflake ROW ACCESS POLICY — a SQL boolean predicate that filters rows.
The policy body must return a BOOLEAN. Rows where the predicate is FALSE are hidden.
Example: CREATE ROW ACCESS POLICY dept_policy AS (dept STRING) RETURNS BOOLEAN ->
CURRENT_ROLE() = 'ADMIN' OR dept = CURRENT_USER();
-
Field Summary
Fields inherited from class dev.frostlake.metastore.SqlObject
comment, createdTime, name, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Get the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific typeMethods inherited from class dev.frostlake.metastore.SqlObject
equals, getComment, getCreatedTime, getName, getOwner, getTagValue, getTagValues, hashCode, rename, setComment, setName, setOwner, setTag, toString, unsetTag, withoutTrailingSemicolon
-
Constructor Details
-
RowAccessPolicy
-
-
Method Details
-
getParameters
-
getBody
-
getObjectType
Description copied from class:SqlObjectGet the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type- Specified by:
getObjectTypein classSqlObject- Returns:
- The object type as a string
-