Package dev.frostlake.executor
Class ShowResultHelpers
java.lang.Object
dev.frostlake.executor.ShowResultHelpers
Small stateless helpers shared by more than one SHOW/DESCRIBE sub-executor. Kept in one place so the
describe-result plumbing is not duplicated across the
Show*Executor family.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateTimeTypeThe type every SHOW and DESCRIBEcreated_oncolumn declares: TIMESTAMP_LTZ at precision THREE —SYSTEM$TYPEOF("created_on")over a RESULT_SCAN of SHOW TABLES, SHOW SEQUENCES, SHOW SCHEMAS, SHOW DATABASES or SHOW VIEWS reads TIMESTAMP_LTZ(3)[SB8] on the account — which is also the precision the cells carry (seecreatedOn(Instant)).static final StringEvery SHOW listing reports role ownership; the engine has no user-owned objects. -
Method Summary
Modifier and TypeMethodDescriptionstatic OffsetDateTimestatic OffsetDateTimecreatedOn(LocalDateTime createdTime) AscreatedOn(Instant), for the models that stamp a HOST-LOCAL wall clock: read back in the host's zone, the instant is recovered exactly.static booleanmatchesLike(String value, String pattern) SQL LIKE match (case-insensitive,%and_wildcards) for SHOW … LIKE filters.static StringownerRoleType(String owner) The owner_role_type that goes withowner.static StringA column default rendered as the EXPRESSION live prints — a string default keeps its quotes ('active', embedded quotes doubled), numbers/booleans/keyword defaults and sequence expressions print verbatim.static String
-
Field Details
-
OWNER_ROLE_TYPE
Every SHOW listing reports role ownership; the engine has no user-owned objects.- See Also:
-
CREATED_ON
The type every SHOW and DESCRIBEcreated_oncolumn declares: TIMESTAMP_LTZ at precision THREE —SYSTEM$TYPEOF("created_on")over a RESULT_SCAN of SHOW TABLES, SHOW SEQUENCES, SHOW SCHEMAS, SHOW DATABASES or SHOW VIEWS reads TIMESTAMP_LTZ(3)[SB8] on the account — which is also the precision the cells carry (seecreatedOn(Instant)).
-
-
Method Details
-
text
-
renderDefaultExpression
A column default rendered as the EXPRESSION live prints — a string default keeps its quotes ('active', embedded quotes doubled), numbers/booleans/keyword defaults and sequence expressions print verbatim. DESCRIBE TABLE'sdefaultcell and GET_DDL share this one rendering (live-verified on the DESCRIBE side:DEFAULT 'active'reads back as'active', notactive). -
matchesLike
SQL LIKE match (case-insensitive,%and_wildcards) for SHOW … LIKE filters. -
ownerRoleType
The owner_role_type that goes withowner. An object nobody owns — INFORMATION_SCHEMA is the one the engine has — leaves BOTH columns empty rather than naming a role type for an owner that is not there. -
createdOn
-
createdOn
AscreatedOn(Instant), for the models that stamp a HOST-LOCAL wall clock: read back in the host's zone, the instant is recovered exactly.
-