Created
June 7, 2026 16:42
-
-
Save AndroidPoet/660a355b215587c99cf132b6b4507cbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Serializable | |
| data class Todo( | |
| val id: String, | |
| val title: String, | |
| val done: Boolean, | |
| ) | |
| val todos = database.selectTyped<Todo>( | |
| table = "todos", | |
| ) { | |
| eq("done", "false") | |
| order("created_at", ascending = false) | |
| limit(25) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment