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

Function mock_execute_sql

nodedb-client/src/traits/core/trait_def.rs:775–779  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

773
774 #[tokio::test]
775 async fn mock_execute_sql() {
776 let db = MockDb;
777 let result = db.execute_sql("SELECT 1", &[]).await.unwrap();
778 assert_eq!(result.row_count(), 0);
779 }
780
781 /// Verify the full "one API, any runtime" pattern: application
782 /// code switches between `NodeDbLite` and `NodeDbRemote` only at

Callers

nothing calls this directly

Calls 1

execute_sqlMethod · 0.45

Tested by

no test coverage detected