attempts to make a database connection to the given URL.
The driver should return
NULL
if it realizes it is the wrong kind
of driver to connect to the given URL. This will be common, as when
the driver manager is asked to connect to a given URL it passes
the URL to each loaded driver in turn.
The driver should raise a
SQLException
if it is the right
driver to connect to the given URL, but has trouble connecting to
the database.
The info argument can be used to pass arbitrary
string tag/value pairs as connection arguments.
Normally at least "user" and "password" properties should be
included in the Properties. For a JDBC driver also the java class must be supplied. The property is named JavaDriverClass.
Possible property value names are when supported by the driver:
-
user - the username
-
password - the password
-
Timeout - after which time a timeout should happen
-
Silent - should the connection be silent
-
UseCatalog - should the driver should support a catalog
-
Charset - which charset should be used to fetch data
-
ParameterNameSubstitution - should the parameter '?' in prepared statement be substituated with an distinct name