Class MySQLConnectionManager
java.lang.Object
dev.satyrn.papermc.api.storage.v2.MySQLConnectionManager
- All Implemented Interfaces:
ConnectionManager
Handles connections to a MySQL-like data source.
- Since:
- 1.9.0
- Author:
- Isabel Maskrey
-
Constructor Summary
ConstructorDescriptionMySQLConnectionManager
(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull MySQLConfiguration configuration) Creates a new MySQL connection manager -
Method Summary
Modifier and TypeMethodDescription@Nullable Connection
connect()
Opens a connection to the data source.
-
Constructor Details
-
MySQLConnectionManager
public MySQLConnectionManager(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull MySQLConfiguration configuration) Creates a new MySQL connection manager- Parameters:
plugin
- The plugin instance.configuration
- The connection configuration.- Since:
- 1.9.0
-
-
Method Details
-
connect
Opens a connection to the data source.- Specified by:
connect
in interfaceConnectionManager
- Returns:
- The connection to the data source.
- Since:
- 1.9.0
-