Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewDB(ctx context.Context, plugins ...Plugin) (*sql.DB, error)
- func NewDBWithConfigPath(ctx context.Context, path string, plugins ...Plugin) (*sql.DB, error)
- func NewDBWithOptions(ctx context.Context, o *Options, plugins ...Plugin) (db *sql.DB, err error)
- type ManagedDB
- type Options
- type Plugin
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewDBWithConfigPath ¶
NewDBWithConfigPath returns a new sql DB with options from config path.
Types ¶
type ManagedDB ¶
ManagedDB represents a managed db client for oracle.
func NewManagedDB ¶
NewManagedDB returns a managed db client with default options.
type Options ¶
type Options struct { ConnectString string Username string Password string MaxLifetime time.Duration SessionTimeout time.Duration WaitTimeout time.Duration MaxSessions int SessionIncrement int MinSessions int MaxSessionsPerShard int }
Options represents a godror options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals options based a given key path.
Click to show internal directories.
Click to hide internal directories.