public interface SqlProvider
Sql instances.| Modifier and Type | Method and Description |
|---|---|
DatabaseCredentials |
getGlobalCredentials()
Gets the global database credentials being used for the global datasource.
|
Sql |
getSql()
Gets the global datasource.
|
Sql |
getSql(DatabaseCredentials credentials)
Constructs a new datasource using the given credentials.
|
@Nonnull Sql getSql(@Nonnull DatabaseCredentials credentials)
These instances are not cached, and a new datasource is created each time this method is called.
credentials - the credentials for the database@Nonnull DatabaseCredentials getGlobalCredentials()
Copyright © 2019. All rights reserved.