Databases makes hba match connections made to specific databases.
(name string, names ...string)
| 117 | |
| 118 | // Databases makes hba match connections made to specific databases. |
| 119 | func (hba *HostBasedAuthentication) Databases(name string, names ...string) *HostBasedAuthentication { |
| 120 | hba.database = hba.quoteDatabase(name) |
| 121 | for _, n := range names { |
| 122 | hba.database += "," + hba.quoteDatabase(n) |
| 123 | } |
| 124 | return hba |
| 125 | } |
| 126 | |
| 127 | // Local makes hba match connection attempts using Unix-domain sockets. |
| 128 | func (hba *HostBasedAuthentication) Local() *HostBasedAuthentication { |