ToDNS Format SubscriptionConfig into a DNS
()
| 155 | |
| 156 | // ToDNS Format SubscriptionConfig into a DNS |
| 157 | func (config *SubscriptionConfig) ToDNS() string { |
| 158 | return fmt.Sprintf("postgres://%s:%s@%s:%s/%s", |
| 159 | config.Connection.User, config.Connection.Password, config.Connection.Host, |
| 160 | config.Connection.Port, config.Connection.DBName) |
| 161 | } |
| 162 | |
| 163 | func (h *ConnectionHandler) executeSubscriptionSQL(subscriptionConfig *SubscriptionConfig) error { |
| 164 | switch subscriptionConfig.Action { |
no outgoing calls
no test coverage detected