Documentation
¶
Index ¶
- func Context(ctx interface{ ... }, name ...string) *orodb.DB
- func Driver(items ...Option) database.Driver
- func From(db database.Database) *orodb.DB
- type ConfigReader
- type Option
- func Config(path string) Option
- func DB(value *orodb.DB) Option
- func DSN(value string) Option
- func Debug(enabled bool) Option
- func Dialect(name string) Option
- func Location(value *time.Location) Option
- func Logger(name string) Option
- func MaxIdle(value int) Option
- func MaxLifetime(value time.Duration) Option
- func MaxOpen(value int) Option
- func Meta(key string, value any) Option
- type OroDatabase
- func (db *OroDatabase) Close(ctx context.Context) error
- func (db *OroDatabase) Info() database.Info
- func (db *OroDatabase) Kind() string
- func (db *OroDatabase) Name() string
- func (db *OroDatabase) Oro() *orodb.DB
- func (db *OroDatabase) Ping(ctx context.Context) error
- func (db *OroDatabase) Raw() any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigReader ¶
ConfigReader reads config values used by the Oro driver.
type Option ¶
type Option func(*options)
Option configures an Oro database driver.
func MaxLifetime ¶
MaxLifetime sets max connection lifetime.
type OroDatabase ¶
type OroDatabase struct {
// contains filtered or unexported fields
}
OroDatabase is a Runa database runtime for Oro.
func (*OroDatabase) Close ¶
func (db *OroDatabase) Close(ctx context.Context) error
Close closes the database.
Click to show internal directories.
Click to hide internal directories.