dbOption.Rd
dbOption
is the equivalent of getOption
, but for
options related JDBC.
At each level (driver and connection), you can set options that will
act as defaults for the DBI methods. Options are inherited, to setting
an option in a call to JDBC
will automatically propagate
that option to the JDBCConnection
object created by
dbConnect
. You can override an option by specifying it
downstream, so, setting dbOptions=
parameter in
dbConnect
will replace the options from the deriver with
the same name, but will keep all others.
dbOption(dbo, name, default)
JDBC database object which the options relate to.
string, name of the option (must not be an empty string).
default value to return in case the option is not set.
Returns either the value of the option (if set) or the `default` value otherwise.