Postgres holds Postgresql database related configuration
| 25 | |
| 26 | // Postgres holds Postgresql database related configuration |
| 27 | type PostgresConfig struct { |
| 28 | Host string `default:"localhost"` |
| 29 | Port int `default:"5432"` |
| 30 | Username string `required:"true"` |
| 31 | Password string |
| 32 | DBName string `required:"true" ` |
| 33 | ConnectTimeout int `default:"20"` |
| 34 | } |
| 35 | |
| 36 | type Postgres struct { |
| 37 | DB *sql.DB |
nothing calls this directly
no outgoing calls
no test coverage detected