oracle.go 988 B

123456789101112
  1. package config
  2. type Oracle struct {
  3. Driver string `mapstructure:"driver" json:"driver" yaml:"driver"` // 驱动,固定为'oci8'
  4. Address string `mapstructure:"address" json:"address" yaml:"address"` // 数据库服务地址
  5. Name string `mapstructure:"name" json:"name" yaml:"name"` // 数据库名
  6. Port string `mapstructure:"port" json:"port" yaml:"port"` // 端口
  7. User string `mapstructure:"user" json:"user" yaml:"user"` // 用户名
  8. Pwd string `mapstructure:"pwd" json:"pwd" yaml:"pwd"` // 密码
  9. MaxIdleConns int `mapstructure:"max-idle-conns" json:"max-idle-conns" yaml:"max-idle-conns"` // 空闲中的最大连接数
  10. MaxOpenConns int `mapstructure:"max-open-conns" json:"max-open-conns" yaml:"max-open-conns"` // 打开到数据库的最大连接数
  11. }