MCPcopy Create free account
hub / github.com/apache/skywalking-php / after_hook_when_pdo_statement

Function after_hook_when_pdo_statement

src/plugin/plugin_pdo.rs:257–267  ·  view source on GitHub ↗
(pdo: &mut ZObj, pdo_statement: &mut ZObj)

Source from the content-addressed store, hash-verified

255}
256
257fn after_hook_when_pdo_statement(pdo: &mut ZObj, pdo_statement: &mut ZObj) -> crate::Result<()> {
258 let dsn = DSN_MAP
259 .get(&pdo.handle())
260 .map(|r| r.value().clone())
261 .context("DSN not found")?;
262 let handle = pdo_statement.handle();
263 debug!(?dsn, handle, "Hook PDOStatement class");
264 DSN_MAP.insert(handle, dsn);
265 hack_dtor(pdo_statement, Some(pdo_statement_dtor));
266 Ok(())
267}
268
269fn get_error_info_item(info: &ZArr, i: u64) -> anyhow::Result<&ZVal> {
270 info.get(i)

Callers 1

after_hookFunction · 0.85

Calls 1

hack_dtorFunction · 0.85

Tested by

no test coverage detected