Toggle table of contents
2.x-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
xtdb-api
/
xtdb.api
/
DataSource
/
ConnectionBuilder
Connection
Builder
class
ConnectionBuilder
@
JvmOverloads
constructor
(
host
:
String
,
port
:
Int
=
5432
,
user
:
String
?
=
null
,
password
:
String
?
=
null
,
database
:
String
=
"xtdb"
,
opts
:
Map
<
String
,
Any
?
>
=
emptyMap()
)
:
ConnectionBuilder
Members
Constructors
Connection
Builder
Link copied to clipboard
@
JvmOverloads
constructor
(
host
:
String
,
port
:
Int
=
5432
,
user
:
String
?
=
null
,
password
:
String
?
=
null
,
database
:
String
=
"xtdb"
,
opts
:
Map
<
String
,
Any
?
>
=
emptyMap()
)
Functions
build
Link copied to clipboard
open
override
fun
build
(
)
:
Connection
database
Link copied to clipboard
fun
database
(
database
:
String
)
:
DataSource.ConnectionBuilder
option
Link copied to clipboard
fun
option
(
key
:
String
,
value
:
Any
?
)
:
DataSource.ConnectionBuilder
password
Link copied to clipboard
open
override
fun
password
(
password
:
String
?
)
:
DataSource.ConnectionBuilder
port
Link copied to clipboard
fun
port
(
port
:
Int
)
:
DataSource.ConnectionBuilder
sharding
Key
Link copied to clipboard
open
override
fun
shardingKey
(
shardingKey
:
ShardingKey
?
)
:
Nothing
super
Sharding
Key
Link copied to clipboard
open
override
fun
superShardingKey
(
superShardingKey
:
ShardingKey
?
)
:
Nothing
user
Link copied to clipboard
open
override
fun
user
(
username
:
String
?
)
:
DataSource.ConnectionBuilder