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
FieldsModifier and TypeFieldDescriptionfinal BooleanNodeWhether to automatically add an underscore between the prefix and the table name.final StringNodeThe name of the database to use.final MapListNodeOptions for the MySQL connection.final StringNodeThe MySQL server hostname.final StringNodeThe MySQL user password.final IntegerNodeThe MySQL server port.final StringNodeOptional prefix for any created table's names.final StringNodeThe MySQL user ID. -
Constructor Summary
ConstructorsConstructorDescriptionMySQLConfiguration(ConfigurationNode<?> parent) Creates a new MySQL configuration container. -
Method Summary
Methods inherited from class dev.satyrn.papermc.api.configuration.v1.BooleanNode
defaultValue, getValueNodeName, setValue, valueMethods 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
-