Package-level declarations

Functions

Link copied to clipboard
@CheckReturnValue
fun <R : UpdatableRecord<R>> DSLContext.insert(record: UpdatableRecord<R>): InsertSetMoreStep<R>

Creates an insert query for the given record. Watch out: this will NOT execute the insert!

Link copied to clipboard
@CheckReturnValue
fun <R : UpdatableRecord<R>> DSLContext.update(record: R): UpdateQuery<R>

Creates an update statement to update the given Record. Watch out: this will NOT execute the update!

Link copied to clipboard
@CheckReturnValue
fun Record.valuesChanged(): Boolean

A simplified version of Record.changed that differentiates between real value changes and changes that actually set the same value to a given field. The built-in Record.changed method consider every setter call on a record as a change which might be not beneficial in most of our use cases. Might be problematic to use with records that doesn't come from the database originally, mostly because the default values wouldn't be there on the created record, which could lead to inconsistency. Recommended to use when you grab a record from the DB, do something with it, and then you want to check if it has really changed before you execute an actual update against the DB.