interface AllQuery<T : Any>
Simple mixin query for selecting all from a given table. The default implementation can be used with a call to the
impl function, or a different implementation may be provided.
all |
abstract suspend fun all(connection: SqlClient): List<T> |
impl |
Provides the default implementation for AllQuery. Can be used as follows. Note that constant values should be passed for schema and table, as doing otherwise would risk sql injection. fun <T : Any> impl(schema: String, table: String): AllQuery<T> |
AllQueryImpl |
The default implementation for AllQuery. It returns all rows in the table. class AllQueryImpl<T : Any> : AllQuery<T>, Deserializer |