Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeaQL/sea-orm
/ Query
Class
Query
examples/axum_example/service/src/query.rs:4–4 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
use sea_orm::*;
3
4
pub struct Query;
5
6
impl Query {
7
pub async fn find_post_by_id(db: &DbConn, id: i32) -> Result<Option<post::Model>, DbErr> {
Callers
4
query_err
Function · 0.50
sqlx_error_to_query_err
Function · 0.50
from_try_get_error
Function · 0.50
transaction_nested
Function · 0.50
Calls
no outgoing calls
Tested by
2
from_try_get_error
Function · 0.40
transaction_nested
Function · 0.40