ConstructPostgresDSN constructs the Data Source Name for a PostgreSQL connection
(host, user, password, dbname, port, sslmode, timezone string)
| 53 | |
| 54 | // ConstructPostgresDSN constructs the Data Source Name for a PostgreSQL connection |
| 55 | func ConstructPostgresDSN(host, user, password, dbname, port, sslmode, timezone string) string { |
| 56 | return fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=%s TimeZone=%s", |
| 57 | host, user, password, dbname, port, sslmode, timezone) |
| 58 | } |
| 59 | |
| 60 | type Object struct { |
| 61 | Hash string `gorm:"primaryKey;type:varchar(255)"` |
no outgoing calls
no test coverage detected