vertx-kuickstart-core / dev.fuelyour.vertxkuickstartcore.repositories / InsertQuery / impl

impl

fun <T : Any, reified R : Any> impl(schema: String, table: String): InsertQuery<T, R>

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

Example:

class ExampleRepo: InsertQuery<Example> by InsertQuery.impl(schema="public", table="example")