terpal-sql-core
1.9.20-0.3.0
jvm
terpal-sql-core
/
io.exoquery.sql
/
Context
Context
abstract
class
Context
<
Session
,
Database
>
Members
Constructors
Context
Link copied to clipboard
constructor
(
)
Types
Coroutine
Session
Link copied to clipboard
inner
class
CoroutineSession
<
Session
>
(
val
session
:
Session
)
:
AbstractCoroutineContextElement
Properties
database
Link copied to clipboard
abstract
val
database
:
Database
session
Key
Link copied to clipboard
abstract
val
sessionKey
:
CoroutineContext.Key
<
Context.CoroutineSession
<
Session
,
Session
,
Database
>
>
Functions
close
Session
Link copied to clipboard
abstract
fun
closeSession
(
session
:
Session
)
is
Closed
Session
Link copied to clipboard
abstract
fun
isClosedSession
(
session
:
Session
)
:
Boolean
new
Session
Link copied to clipboard
abstract
fun
newSession
(
)
:
Session
run
Transactionally
Link copied to clipboard
abstract
suspend
fun
<
T
>
runTransactionally
(
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
T
with
Transaction
Scope
Link copied to clipboard
suspend
fun
<
T
>
withTransactionScope
(
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
T