Skip to content

Instantly share code, notes, and snippets.

@AndroidPoet
Created June 7, 2026 16:42
Show Gist options
  • Select an option

  • Save AndroidPoet/660a355b215587c99cf132b6b4507cbe to your computer and use it in GitHub Desktop.

Select an option

Save AndroidPoet/660a355b215587c99cf132b6b4507cbe to your computer and use it in GitHub Desktop.
@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