MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_database

Method with_database

crates/opencode-session/src/todo.rs:31–37  ·  view source on GitHub ↗
(pool: sqlx::SqlitePool)

Source from the content-addressed store, hash-verified

29 }
30
31 pub fn with_database(pool: sqlx::SqlitePool) -> Self {
32 Self {
33 state: Arc::new(RwLock::new(HashMap::new())),
34 db: Some(Arc::new(TodoRepository::new(pool))),
35 bus: None,
36 }
37 }
38
39 pub fn with_bus(bus: Arc<Bus>) -> Self {
40 Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected