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

Function with_dsn

src/plugin/plugin_pdo.rs:291–296  ·  view source on GitHub ↗
(handle: u32, f: impl FnOnce(&Dsn) -> anyhow::Result<T>)

Source from the content-addressed store, hash-verified

289}
290
291fn with_dsn<T>(handle: u32, f: impl FnOnce(&Dsn) -> anyhow::Result<T>) -> anyhow::Result<T> {
292 DSN_MAP
293 .get(&handle)
294 .map(|r| f(r.value()))
295 .context("dsn not exists")?
296}
297
298#[derive(Debug, Clone)]
299struct Dsn {

Callers 2

hook_pdo_methodsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected