Class RowAccessPolicy

java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.RowAccessPolicy
All Implemented Interfaces:
Taggable

public class RowAccessPolicy extends SqlObject
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();
  • Constructor Details

  • Method Details

    • getParameters

      public List<Parameter> getParameters()
    • getBody

      public String getBody()
    • getObjectType

      public String getObjectType()
      Description copied from class: SqlObject
      Get the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type
      Specified by:
      getObjectType in class SqlObject
      Returns:
      The object type as a string