github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/db/config.go (about) 1 package db 2 3 // Config provide fields to configure the pool 4 type Config struct { 5 // Database name 6 Name string `mapstructure:"Name"` 7 8 // User name 9 User string `mapstructure:"User"` 10 11 // Password of the user 12 Password string `mapstructure:"Password"` 13 14 // Host address 15 Host string `mapstructure:"Host"` 16 17 // Port Number 18 Port string `mapstructure:"Port"` 19 20 // EnableLog 21 EnableLog bool `mapstructure:"EnableLog"` 22 23 // MaxConns is the maximum number of connections in the pool. 24 MaxConns int `mapstructure:"MaxConns"` 25 }