MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / show_secrets

Function show_secrets

src/sql/src/plan/statement/show.rs:789–803  ·  view source on GitHub ↗
(
    scx: &'a StatementContext<'a>,
    from: Option<ResolvedSchemaName>,
    filter: Option<ShowStatementFilter<Aug>>,
)

Source from the content-addressed store, hash-verified

787}
788
789pub fn show_secrets<'a>(
790 scx: &'a StatementContext<'a>,
791 from: Option<ResolvedSchemaName>,
792 filter: Option<ShowStatementFilter<Aug>>,
793) -> Result<ShowSelect<'a>, PlanError> {
794 let schema_spec = scx.resolve_optional_schema(&from)?;
795
796 let query = format!(
797 "SELECT name, comment
798 FROM mz_internal.mz_show_secrets
799 WHERE schema_id = '{schema_spec}'",
800 );
801
802 ShowSelect::new(scx, query, filter, None, Some(&["name", "comment"]))
803}
804
805pub fn show_privileges<'a>(
806 scx: &'a StatementContext<'a>,

Callers 1

show_objectsFunction · 0.85

Calls 1

Tested by

no test coverage detected