Package Usage: go: github.com/godror/godror
Package godror is a database/sql/driver for Oracle DB.
The connection string for the sql.Open("godror", dataSourceName) call can be
the simple
with additional params (here with the defaults):
These are the defaults.
For external authentication, user and password should be empty
with default value(0) for heterogeneousPool parameter.
heterogeneousPool(valid for standaloneConnection=0)
and externalAuth parameters are internally set. For Proxy
support , sessionuser is enclosed in brackets [sessionuser].
To use a heterogeneous Pool with Proxy Support ,user and password
parameters should be non-empty and parameter heterogeneousPool should be 1.
If user,password are empty and heterogeneousPool is set to 1,
different user and password can be passed in subsequent queries.
Many advocate that a static session pool (min=max, incr=0)
is better, with 1-10 sessions per CPU thread.
See https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-7DFBA826-7CC0-4D16-B19C-31D168069B54
You may also use ConnectionParams to configure a connection.
If you specify connectionClass, that'll reuse the same session pool
without the connectionClass, but will specify it on each session acquire.
Thus you can cluster the session pool with classes.
For connectionClass usage, see https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-CE6E4DCC-92DF-4946-92B8-2BDD9845DA35
If you specify server_type as POOLED in sid, DRCP is used.
For what can be used as "sid", see https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-E5358DEA-D619-4B7B-A799-3D2F802500F1
Go strings are UTF-8, so the default charset should be used unless there's a really good reason to interfere with Oracle's character set conversion.
124 versions
Latest release: over 1 year ago
457 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/godror/godror
Dependent Repos 1
swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi
Last synced: 8 months ago - Pushed: 12 months ago