MCPcopy Create free account
hub / github.com/apecloud/myduckserver / ToDNS

Method ToDNS

pgserver/subscription_handler.go:157–161  ·  view source on GitHub ↗

ToDNS Format SubscriptionConfig into a DNS

()

Source from the content-addressed store, hash-verified

155
156// ToDNS Format SubscriptionConfig into a DNS
157func (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
163func (h *ConnectionHandler) executeSubscriptionSQL(subscriptionConfig *SubscriptionConfig) error {
164 switch subscriptionConfig.Action {

Callers 1

doCreateSubscriptionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected