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

DeleteQuery

interface DeleteQuery

Simple mixin query for deleting a single ron from a given table based on id. The default implementation can be used with a call to the impl function, or a different implementation may be provided.

Functions

delete

abstract suspend fun delete(id: String, connection: SqlClient): String

Companion Object Functions

impl

Provides the default implementation for DeleteQuery. Can be used as follows. Note that constant values should be passed for schema and table, as doing otherwise would risk sql injection.

fun impl(schema: String, table: String): DeleteQuery

Inheritors

DeleteQueryImpl

The default implementation for DeleteQuery. It deletes a single row in the table by id.

class DeleteQueryImpl : DeleteQuery