Package | Description |
---|---|
com.glyart.mystral.database |
Contains the implementations of the main functionalities of this library.
|
com.glyart.mystral.datasource |
Contains some utilities for managing
DataSource objects. |
Modifier and Type | Method and Description |
---|---|
static @NotNull AsyncDatabase |
Mystral.newAsyncDatabase(@NotNull Credentials credentials,
@NotNull Executor executor)
Creates a new AsyncDatabase with the given Credentials and an Executor implementation.
|
static <T extends DataSource> |
Mystral.newAsyncDatabase(@NotNull DataSourceFactory<T> factory,
@NotNull Executor executor)
Creates a new AsyncDatabase with the given DataSourceFactory and an Executor implementation.
|
static @NotNull Database |
Mystral.newDatabase(@NotNull Credentials credentials)
Creates a new Database with the given Credentials.
|
static <T extends DataSource> |
Mystral.newDatabase(@NotNull DataSourceFactory<T> factory)
Creates a new Database with the given DataSourceFactory.
|
Modifier and Type | Method and Description |
---|---|
T |
DataSourceFactory.newDataSource()
If ready, a new DataSource is created with its configuration.
|
@NotNull com.zaxxer.hikari.HikariDataSource |
HikariFactory.newDataSource() |
static @NotNull DataSource |
DataSourceUtils.newDataSource(@NotNull Credentials credentials)
Creates a new DataSource with the given Credentials.
|
Copyright © 2021. All rights reserved.