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

Method describe

src/adapter/src/coord/sql.rs:105–116  ·  view source on GitHub ↗
(
        catalog: &Catalog,
        session: &Session,
        stmt: Option<Statement<Raw>>,
        param_types: Vec<Option<SqlScalarType>>,
    )

Source from the content-addressed store, hash-verified

103
104 #[mz_ore::instrument(level = "debug")]
105 pub(crate) fn describe(
106 catalog: &Catalog,
107 session: &Session,
108 stmt: Option<Statement<Raw>>,
109 param_types: Vec<Option<SqlScalarType>>,
110 ) -> Result<StatementDesc, AdapterError> {
111 if let Some(stmt) = stmt {
112 describe(catalog, stmt, &param_types, session)
113 } else {
114 Ok(StatementDesc::new(None))
115 }
116 }
117
118 /// Verify a prepared statement is still valid. This will return an error if
119 /// the catalog's revision has changed and the statement now produces a

Callers 8

tab-stress.spec.tsFile · 0.45
page-load.spec.tsFile · 0.45
memory.spec.tsFile · 0.45
prometheus.spec.tsFile · 0.45
launchFunction · 0.45

Calls 1

describeFunction · 0.50

Tested by

no test coverage detected