MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / list

Function list

examples/loco_seaography/src/controllers/notes.rs:29–31  ·  view source on GitHub ↗
(State(ctx): State<AppContext>)

Source from the content-addressed store, hash-verified

27
28#[debug_handler]
29pub async fn list(State(ctx): State<AppContext>) -> Result<Response> {
30 format::json(Entity::find().all(&ctx.db).await?)
31}
32
33#[debug_handler]
34pub async fn add(State(ctx): State<AppContext>, Json(params): Json<Params>) -> Result<Response> {

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected