Class MySQLConfiguration
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<Boolean>
dev.satyrn.papermc.api.configuration.v1.BooleanNode
dev.satyrn.papermc.api.configuration.v2.MySQLConfiguration
Represents a container of nodes which dictate the function of and options for the MySQL server backend.
- Since:
- 1.9.0
- Author:
- Isabel Maskrey
-
Field Summary
Modifier and TypeFieldDescriptionfinal BooleanNode
Whether to automatically add an underscore between the prefix and the table name.final StringNode
The name of the database to use.final MapListNode
Options for the MySQL connection.final StringNode
The MySQL server hostname.final StringNode
The MySQL user password.final IntegerNode
The MySQL server port.final StringNode
Optional prefix for any created table's names.final StringNode
The MySQL user ID. -
Constructor Summary
ConstructorDescriptionMySQLConfiguration
(ConfigurationNode<?> parent) Creates a new MySQL configuration container. -
Method Summary
Methods inherited from class dev.satyrn.papermc.api.configuration.v1.BooleanNode
defaultValue, getValueNodeName, setValue, value
Methods inherited from class dev.satyrn.papermc.api.configuration.v1.ConfigurationNode
addChild, equals, getBasePath, getBasePath, getChildren, getComments, getComments, getConfig, getInlineComments, getInlineComments, getLogger, getName, getPath, getPath, getPlugin, getPriority, getSLF4JLogger, getValuePath, getValuePath, hasChildren, hasName, isSubNode, save, setComments, setComments, setConfigValue, setInlineComments, setInlineComments, toString, toString
-
Field Details
-
hostname
The MySQL server hostname.- Since:
- 1.9.0
-
port
The MySQL server port.- Since:
- 1.9.0
-
database
The name of the database to use.- Since:
- 1.9.0
-
userID
The MySQL user ID.- Since:
- 1.9.0
-
password
The MySQL user password.- Since:
- 1.9.0
-
flags
Options for the MySQL connection.- Since:
- 1.9.0
-
tablePrefix
Optional prefix for any created table's names.- Since:
- 1.9.0
-
appendUnderscoreToPrefix
Whether to automatically add an underscore between the prefix and the table name.Defaults to true.
- Since:
- 1.9.0
-
-
Constructor Details
-
MySQLConfiguration
Creates a new MySQL configuration container.- Parameters:
parent
- The parent container.- Since:
- 1.9.0
-