MCPcopy Create free account
hub / github.com/dolthub/doltgresql / init

Function init

integration-tests/go-sql-server-driver/driver/cmd.go:50–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48const EnvDoltgresBinPath = "DOLTGRES_BIN_PATH"
49
50func init() {
51 path := os.Getenv(EnvDoltgresBinPath)
52 if path == "" {
53 path = "doltgres"
54 }
55 path = filepath.Clean(path)
56 var err error
57
58 DoltgresPath, err = exec.LookPath(path)
59 if err != nil {
60 log.Printf("did not find doltgres binary: %v\n", err.Error())
61 }
62
63 DelvePath, _ = exec.LookPath("dlv")
64}
65
66// DoltUser is an abstraction for a user account that calls the `doltgres`
67// server. All of our doltgres binary invocations are done through DoltUser.

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected