ora

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 9 Imported by: 0

README

di-oracle

oracle connection with DI

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToGorm

func ToGorm(db *sql.DB, logger *zap.Logger) (*gorm.DB, error)

make sql.DB to gorm.DB, but only support gorm.Raw, nothing else.

Types

type OracleSetting

type OracleSetting struct {
	Host          string
	Port          int
	Service       string
	User          string
	Password      string
	MaxLifetime   time.Duration
	MaxIdletime   time.Duration
	Mustconnected bool // should test oracle connection when bootup
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL