MCPcopy Create free account
hub / github.com/Cosmian/kms / get_query

Method get_query

crate/server_database/src/stores/sql/database.rs:16–18  ·  view source on GitHub ↗

Get the SQL query by name using the loader # Errors If the query can't be found

(&'a self, name: &'a str)

Source from the content-addressed store, hash-verified

14 /// # Errors
15 /// If the query can't be found
16 fn get_query<'a>(&'a self, name: &'a str) -> DbResult<&'a str> {
17 get_query(self.get_loader(), name)
18 }
19}
20
21/// Get the SQL query by name using a loader

Callers 2

instantiateMethod · 0.80
instantiateMethod · 0.80

Implementers 3

mysql.rscrate/server_database/src/stores/sql/m
sqlite.rscrate/server_database/src/stores/sql/s
pgsql.rscrate/server_database/src/stores/sql/p

Calls 2

get_queryFunction · 0.85
get_loaderMethod · 0.45

Tested by

no test coverage detected