vertx-kuickstart-core / dev.fuelyour.vertxkuickstartcore.repositories / AllQuery

AllQuery

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.

Functions

all

abstract suspend fun all(connection: SqlClient): List<T>

Companion Object Functions

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>

Inheritors

AllQueryImpl

The default implementation for AllQuery. It returns all rows in the table.

class AllQueryImpl<T : Any> : AllQuery<T>, Deserializer