URLParser

object URLParser extends AbstractURIParser

The PostgreSQL URL parser.

class AbstractURIParser
class Object
trait Matchable
class Any

Value members

Inherited methods

def parse(url: String, charset: Charset): Configuration

Parses the provided url and returns a Configuration based upon it. On an error, a default configuration is returned.

Parses the provided url and returns a Configuration based upon it. On an error, a default configuration is returned.

Value Params
charset

the charset to use.

url

the URL to parse.

Returns

a Configuration.

Inherited from
AbstractURIParser
@throws("if the URL does not match the expected type, or cannot be parsed for any reason")
def parseOrDie(url: String, charset: Charset): Configuration

Parses the provided url and returns a Configuration based upon it. On an error,

Parses the provided url and returns a Configuration based upon it. On an error,

Value Params
charset

the charset to use.

url

the URL to parse.

Returns

a Configuration.

Inherited from
AbstractURIParser

Concrete fields

override
val DEFAULT: Configuration

The default configuration for PostgreSQL.

The default configuration for PostgreSQL.

Deprecated fields

@deprecated("Use com.github.mauricio.async.db.postgresql.util.URLParser.DEFAULT.port", since = "0.2.20")
val DEFAULT_PORT: String
Deprecated
[Since version 0.2.20]
@deprecated("Use com.github.mauricio.async.db.AbstractURIParser.DBNAME", since = "0.2.20")
val PGDBNAME: String
Deprecated
[Since version 0.2.20]
@deprecated("Use com.github.mauricio.async.db.AbstractURIParser.HOST", since = "0.2.20")
val PGHOST: String
Deprecated
[Since version 0.2.20]
@deprecated("Use com.github.mauricio.async.db.AbstractURIParser.PASSWORD", since = "0.2.20")
val PGPASSWORD: String
Deprecated
[Since version 0.2.20]
@deprecated("Use com.github.mauricio.async.db.AbstractURIParser.PORT", since = "0.2.20")
val PGPORT: String
Deprecated
[Since version 0.2.20]
@deprecated("Use com.github.mauricio.async.db.AbstractURIParser.USERNAME", since = "0.2.20")
val PGUSERNAME: String
Deprecated
[Since version 0.2.20]