ReturningQueryable

class ReturningQueryable(var statement: SqlAnnotatedElement, val select: QueryElement, tableName: SqlTableName?) : QueryWithResults

Query deriving from the RETURNING clause of an expression.

Typical use cases include INSERT, UPDATE, and DELETE. This class is similar to SelectQueryable but differs in the fact that only 1 table can be part of the query, and that table is guaranteed to be "real".

Parameters

statement

Parent statement. Typically, this is the INSERT, UPDATE, or DELETE statement.

select

The RETURNING clause of the statement. Represented as a query since it returns values to the caller.

tableName

Name of the table the statement is operating on.

Constructors

Link copied to clipboard
constructor(statement: SqlAnnotatedElement, select: QueryElement, tableName: SqlTableName?)

Properties

Link copied to clipboard
open override val pureTable: NamedElement?
Link copied to clipboard
open override val select: QueryElement
Link copied to clipboard
open override var statement: SqlAnnotatedElement