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)

Arguments

dbo

JDBC database object which the options relate to.

name

string, name of the option (must not be an empty string).

default

default value to return in case the option is not set.

Value

Returns either the value of the option (if set) or the `default` value otherwise.

Author

Simon Urbanek

See also