MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / row_to_policy_record

Function row_to_policy_record

crates/openshell-server/src/persistence/sqlite.rs:911–919  ·  view source on GitHub ↗
(row: sqlx::sqlite::SqliteRow)

Source from the content-addressed store, hash-verified

909}
910
911fn row_to_policy_record(row: sqlx::sqlite::SqliteRow) -> PersistenceResult<PolicyRecord> {
912 let id: String = row.get("id");
913 let sandbox_id: String = row.get("scope");
914 let version: i64 = row.get("version");
915 let status: String = row.get("status");
916 let payload: Vec<u8> = row.get("payload");
917 let created_at_ms: i64 = row.get("created_at_ms");
918 policy_record_from_parts(id, sandbox_id, version, status, &payload, created_at_ms)
919}
920
921fn row_to_draft_chunk_record(row: sqlx::sqlite::SqliteRow) -> PersistenceResult<DraftChunkRecord> {
922 let id: String = row.get("id");

Callers

nothing calls this directly

Calls 2

policy_record_from_partsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected