Sqkon
Toggle table of contents
1.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Sqkon
Sqkon
/
com.mercury.sqkon.db
/
EntityQueries
Entity
Queries
class
EntityQueries
(
sqlDriver
:
SqlDriver
)
:
TransacterImpl
(
source
)
Members
Constructors
Entity
Queries
Link copied to clipboard
constructor
(
sqlDriver
:
SqlDriver
)
Functions
delete
Link copied to clipboard
fun
delete
(
entityName
:
String
,
entityKeys
:
Collection
<
String
>
?
=
null
,
where
:
Where
<
*
>
?
=
null
)
insert
Entity
Link copied to clipboard
fun
insertEntity
(
entity
:
Entity
,
ignoreIfExists
:
Boolean
)
transaction
Link copied to clipboard
open
override
fun
transaction
(
noEnclosing
:
Boolean
,
body
:
TransactionWithoutReturn
.
(
)
->
Unit
)
transaction
With
Result
Link copied to clipboard
open
override
fun
<
R
>
transactionWithResult
(
noEnclosing
:
Boolean
,
bodyWithReturn
:
TransactionWithReturn
<
R
>
.
(
)
->
R
)
:
R
update
Entity
Link copied to clipboard
fun
updateEntity
(
entityName
:
String
,
entityKey
:
String
,
expiresAt
:
Instant
?
,
value
:
String
)