sqlx4k
Toggle table of contents
0.70.0
common
Platform filter
common
Switch theme
Search in API
sqlx4k
sqlx4k-postgres
/
io.github.smyrgeorge.sqlx4k.postgres
/
IPostgresSQL
IPostgres
SQL
interface
IPostgresSQL
:
Driver
,
Driver.Pool
,
Driver.Transactional
,
Driver.Migrate
Inheritors
PostgreSQL
Members
Types
Companion
Link copied to clipboard
object
Companion
Functions
begin
Link copied to clipboard
abstract
suspend
fun
begin
(
)
:
Result
<
Transaction
>
close
Link copied to clipboard
abstract
suspend
fun
close
(
)
:
Result
<
Unit
>
execute
Link copied to clipboard
abstract
suspend
fun
execute
(
statement
:
Statement
)
:
Result
<
Long
>
abstract
suspend
fun
execute
(
sql
:
String
)
:
Result
<
Long
>
fetch
All
Link copied to clipboard
abstract
suspend
fun
fetchAll
(
statement
:
Statement
)
:
Result
<
ResultSet
>
abstract
suspend
fun
fetchAll
(
sql
:
String
)
:
Result
<
ResultSet
>
abstract
suspend
fun
<
T
>
fetchAll
(
statement
:
Statement
,
rowMapper
:
RowMapper
<
T
>
)
:
Result
<
List
<
T
>
>
open
suspend
fun
<
T
>
fetchAll
(
sql
:
String
,
rowMapper
:
RowMapper
<
T
>
)
:
Result
<
List
<
T
>
>
listen
Link copied to clipboard
abstract
suspend
fun
listen
(
channel
:
String
,
f
:
(
Notification
)
->
Unit
)
abstract
suspend
fun
listen
(
channels
:
List
<
String
>
,
f
:
(
Notification
)
->
Unit
)
migrate
Link copied to clipboard
abstract
suspend
fun
migrate
(
path
:
String
)
:
Result
<
Unit
>
notify
Link copied to clipboard
abstract
suspend
fun
notify
(
channel
:
String
,
value
:
String
)
pool
Idle
Size
Link copied to clipboard
abstract
fun
poolIdleSize
(
)
:
Int
pool
Size
Link copied to clipboard
abstract
fun
poolSize
(
)
:
Int
transaction
Link copied to clipboard
open
suspend
fun
<
T
>
transaction
(
f
:
suspend
Transaction
.
(
)
->
T
)
:
T
validate
Channel
Name
Link copied to clipboard
open
fun
validateChannelName
(
channel
:
String
)
Validates the name of a PostgreSQL channel to ensure it adheres to the naming rules.