forked from denisenkom/go-mssqldb
-
Notifications
You must be signed in to change notification settings - Fork 48
/
stub.go
37 lines (27 loc) · 888 Bytes
/
stub.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//go:build !windows
// +build !windows
package namedpipe
import (
"context"
"fmt"
"net"
"github.com/microsoft/go-mssqldb/msdsn"
)
func (n namedPipeDialer) ParseServer(server string, p *msdsn.Config) error {
return fmt.Errorf("Named pipe connections are not supported on this operating system")
}
func (n namedPipeDialer) Protocol() string {
return "np"
}
func (n namedPipeDialer) Hidden() bool {
return false
}
func (n namedPipeDialer) ParseBrowserData(data msdsn.BrowserData, p *msdsn.Config) error {
return fmt.Errorf("Named pipe connections are not supported on this operating system")
}
func (n namedPipeDialer) DialConnection(ctx context.Context, p *msdsn.Config) (conn net.Conn, err error) {
return nil, fmt.Errorf("Named pipe connections are not supported on this operating system")
}
func (n namedPipeDialer) CallBrowser(p *msdsn.Config) bool {
return false
}