MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / execute_ddl

Method execute_ddl

nodedb-client/src/native/connection/mod.rs:276–287  ·  view source on GitHub ↗

Execute a DDL command.

(&mut self, sql: &str)

Source from the content-addressed store, hash-verified

274
275 /// Execute a DDL command.
276 pub async fn execute_ddl(&mut self, sql: &str) -> NodeDbResult<QueryResult> {
277 let resp = self
278 .send(
279 OpCode::Ddl,
280 TextFields {
281 sql: Some(sql.to_string()),
282 ..Default::default()
283 },
284 )
285 .await?;
286 response_to_query_result(resp)
287 }
288
289 /// Begin a transaction.
290 pub async fn begin(&mut self) -> NodeDbResult<()> {

Callers 1

ddlMethod · 0.80

Calls 3

response_to_query_resultFunction · 0.85
to_stringMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected