exposed-upsert
1.3.4
exposed-upsert
/
dev.forst.exposed
/
InsertOrUpdate
Insert
Or
Update
class
InsertOrUpdate
<
Key
:
Any
>
(
table
:
Table
,
isIgnore
:
Boolean
=
false
,
keys
:
Column
<
*
>
)
:
InsertStatement
<
Key
>
(
source
)
Statement using PostgreSQL upsert.
Constructors
Functions
Properties
Constructors
Insert
Or
Update
Link copied to clipboard
fun
InsertOrUpdate
(
table
:
Table
,
isIgnore
:
Boolean
=
false
,
vararg
keys
:
Column
<
*
>
)
Functions
arguments
Link copied to clipboard
open
override
fun
arguments
(
)
:
List
<
Iterable
<
Pair
<
IColumnType
,
Any
?
>
>
>
contains
Link copied to clipboard
open
operator
fun
contains
(
column
:
Column
<
*
>
)
:
Boolean
execute
Link copied to clipboard
fun
execute
(
transaction
:
Transaction
)
:
Int
?
execute
Internal
Link copied to clipboard
open
override
fun
PreparedStatementApi
.
executeInternal
(
transaction
:
Transaction
)
:
Int
get
Link copied to clipboard
infix operator
fun
<
T
>
get
(
column
:
Column
<
T
>
)
:
T
infix operator
fun
<
T
>
get
(
column
:
CompositeColumn
<
T
>
)
:
T
get
Or
Null
Link copied to clipboard
fun
<
T
>
getOrNull
(
column
:
Column
<
T
>
)
:
T
?
prepared
Link copied to clipboard
open
override
fun
prepared
(
transaction
:
Transaction
,
sql
:
String
)
:
PreparedStatementApi
prepare
SQL
Link copied to clipboard
open
override
fun
prepareSQL
(
transaction
:
Transaction
)
:
String
set
Link copied to clipboard
open
operator
fun
<
S
>
set
(
column
:
Column
<
S
>
,
value
:
S
)
open
operator
fun
<
T
,
S
:
T
,
E
:
Expression
<
S
>
>
set
(
column
:
Column
<
T
>
,
value
:
E
)
open
operator
fun
<
S
>
set
(
column
:
Column
<
S
>
,
value
:
Query
)
operator
fun
<
S
,
ID
:
EntityID
<
S
>
,
E
:
Expression
<
S
>
>
set
(
column
:
Column
<
ID
>
,
value
:
E
)
operator
fun
<
S
:
Comparable
<
S
>
,
ID
:
EntityID
<
S
>
>
set
(
column
:
Column
<
ID
>
,
value
:
S
)
operator
fun
<
S
:
Comparable
<
S
>
>
set
(
column
:
Column
<
EntityID
<
S
>
?
>
,
value
:
S
?
)
open
operator
fun
<
S
:
Any
>
set
(
column
:
CompositeColumn
<
S
>
,
value
:
S
)
update
Link copied to clipboard
open
fun
<
T
,
S
:
T
?
>
update
(
column
:
Column
<
T
>
,
value
:
SqlExpressionBuilder
.
(
)
->
Expression
<
S
>
)
open
fun
<
T
,
S
:
T
?
>
update
(
column
:
Column
<
T
>
,
value
:
Expression
<
S
>
)
Properties
inserted
Count
Link copied to clipboard
var
insertedCount
:
Int
is
Always
Batch
Link copied to clipboard
open
val
isAlwaysBatch
:
Boolean
is
Ignore
Link copied to clipboard
val
isIgnore
:
Boolean
resulted
Values
Link copied to clipboard
var
resultedValues
:
List
<
ResultRow
>
?
table
Link copied to clipboard
val
table
:
Table
targets
Link copied to clipboard
val
targets
:
List
<
Table
>
type
Link copied to clipboard
val
type
:
StatementType