MCPcopy Create free account
hub / github.com/ForgeAILab/forge / parse_enum

Function parse_enum

crates/db/src/sqlite.rs:173–175  ·  view source on GitHub ↗
(value: String)

Source from the content-addressed store, hash-verified

171}
172
173fn parse_enum<T: FromStr<Err = String>>(value: String) -> Result<T> {
174 value.parse().map_err(|_| DbError::InvalidTransition)
175}
176
177fn check_error(error: sqlx::Error) -> DbError {
178 if let sqlx::Error::Database(database_error) = &error {

Callers 14

map_repoFunction · 0.85
map_agentFunction · 0.85
map_workspaceFunction · 0.85
map_daemonFunction · 0.85
map_runtimeFunction · 0.85
map_conversationFunction · 0.85
map_conversation_messageFunction · 0.85
map_executionFunction · 0.85
map_reviewFunction · 0.85
map_task_commentFunction · 0.85
map_task_mediaFunction · 0.85
map_terminal_sessionFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected