Governance & Compliance
The procedures in this section provide governance metadata and compliance-oriented reporting across Casabase Cube applications. Classification labels record governance intent, while inventory and privacy reporting provide broader visibility into data handling and security status.
SET_DATA_CLASSIFICATION
Section titled “SET_DATA_CLASSIFICATION”Minimum role: CUBE_ADMIN
SET_DATA_CLASSIFICATION( P_CUBE_NAME, P_CLASSIFICATION) -> VARCHARSets a cube’s classification label for governance reporting.
Parameters
Section titled “Parameters”| Parameter | Type | Req/Opt | Description |
|---|---|---|---|
P_CUBE_NAME |
VARCHAR |
req | Cube name. |
P_CLASSIFICATION |
VARCHAR |
req | PUBLIC, INTERNAL, CONFIDENTIAL, or RESTRICTED. |
Example
Section titled “Example”CALL CUBE.SET_DATA_CLASSIFICATION( 'FINANCE', 'CONFIDENTIAL');GET_DATA_INVENTORY
Section titled “GET_DATA_INVENTORY”Minimum role: CUBE_ADMIN
GET_DATA_INVENTORY() -> TABLEReturns an inventory of every cube, including its classification, size, and security status.
This procedure takes no parameters.
Returns
Section titled “Returns”Returns:
CUBE_NAMEDATA_TABLEDATA_CLASSIFICATIONDIMENSION_COUNTHAS_SECURITYLAST_QUERIED
Review DATA_CLASSIFICATION and HAS_SECURITY together. A cube classified as CONFIDENTIAL or RESTRICTED with no security enabled is a combination that warrants review.
LAST_QUERIED can help identify cubes that are no longer being used.
Example
Section titled “Example”CALL CUBE.GET_DATA_INVENTORY();GET_PRIVACY_REPORT
Section titled “GET_PRIVACY_REPORT”Minimum role: CUBE_ADMIN
GET_PRIVACY_REPORT() -> VARIANTGenerates a compliance summary suitable for use in a vendor or privacy review.
This procedure takes no parameters.
Returns
Section titled “Returns”Returns JSON covering:
summary, including cube counts, classification, and security coveragedata_handling, including egress, external connections, PII collection, and telemetryaudit_log, including record count and retained spanrecommendationsreport_date
Example
Section titled “Example”CALL CUBE.GET_PRIVACY_REPORT();