Class SQLDatabaseConfig

  • Direct Known Subclasses:
    SQLPooledDatabaseConfig

    public class SQLDatabaseConfig
    extends io.rxmicro.config.Config
    Allows configuring SQL DB options.
    Since:
    0.1
    Author:
    nedis
    See Also:
    Duration
    • Constructor Detail

      • SQLDatabaseConfig

        public SQLDatabaseConfig()
    • Method Detail

      • getHost

        public String getHost()
        Returns the server host name.
        Returns:
        the server host name
      • getPort

        public int getPort()
        Returns the server port.
        Returns:
        the server port
      • getUser

        public String getUser()
        Returns the database username.
        Returns:
        the database username
      • getPassword

        public CharSequence getPassword()
        Returns the database password.
        Returns:
        the database password
      • getDatabase

        public String getDatabase()
        Returns the database name.
        Returns:
        the database name
      • getOptions

        public Optional<Map<String,​String>> getOptions()
        Returns the db specific options.
        Returns:
        the db specific options
      • getConnectTimeout

        public Duration getConnectTimeout()
        Returns the connection timeout.
        Returns:
        the connection timeout
      • getConnectionString

        public String getConnectionString()
        Returns the connection string built from schema, host, port and database parameters.
        Returns:
        the connection string built from schema, host, port and database parameters