Skip to content

Add order-by logic to database queries#491

Draft
xelab04 wants to merge 1 commit intocot-rs:masterfrom
xelab04:db-sort-by
Draft

Add order-by logic to database queries#491
xelab04 wants to merge 1 commit intocot-rs:masterfrom
xelab04:db-sort-by

Conversation

@xelab04
Copy link

@xelab04 xelab04 commented Feb 24, 2026

Refer to #490

@github-actions github-actions bot added the C-lib Crate: cot (main library crate) label Feb 24, 2026
@xelab04
Copy link
Author

xelab04 commented Feb 24, 2026

https://docs.rs/sea-query/latest/sea_query/query/trait.OrderedStatement.html
The sea query docs make a reference to order_by_expr which takes expr: SimpleExpr, order: Order

I'm not exactly sure how to plug sea query into this?

@xelab04 xelab04 marked this pull request as draft February 24, 2026 17:00
@xelab04
Copy link
Author

xelab04 commented Feb 24, 2026

Right, updated it to use seaquery's own order_by method. I'm not getting the types down for the time being, will work on it more later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant