MCPcopy Create free account
hub / github.com/erans/pgsqlite / is_cacheable_for_wire_protocol

Function is_cacheable_for_wire_protocol

src/cache/wire_protocol_cache.rs:64–69  ·  view source on GitHub ↗

Check if a query is suitable for wire protocol caching

(_query: &str)

Source from the content-addressed store, hash-verified

62
63/// Check if a query is suitable for wire protocol caching
64pub fn is_cacheable_for_wire_protocol(_query: &str) -> bool {
65 // Wire protocol caching is currently disabled to prevent transaction visibility issues.
66 // The cache was returning stale SELECT results across sessions after COMMIT.
67 // TODO: Implement cache invalidation on COMMIT or per-session caching.
68 false
69}
70
71/// Encode a data row for wire protocol
72pub fn encode_data_row(row: &[Option<Vec<u8>>]) -> Vec<u8> {

Callers 1

execute_selectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected