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

Function DebugSqlServer

integration-tests/go-sql-server-driver/driver/cmd.go:354–362  ·  view source on GitHub ↗
(dc DoltCmdable, debuggerPort int, opts ...SqlServerOpt)

Source from the content-addressed store, hash-verified

352}
353
354func DebugSqlServer(dc DoltCmdable, debuggerPort int, opts ...SqlServerOpt) (*SqlServer, error) {
355 ddb, ok := dc.(DoltDebuggable)
356 if !ok {
357 return nil, fmt.Errorf("%T does not implement DoltDebuggable", dc)
358 }
359
360 cmd := ddb.DoltDebug(debuggerPort)
361 return runSqlServerCommand(dc, append(opts, WithDebugPort(debuggerPort)), cmd)
362}
363
364func runSqlServerCommand(dc DoltCmdable, opts []SqlServerOpt, cmd *exec.Cmd) (*SqlServer, error) {
365 stdout, err := cmd.StdoutPipe()

Callers 1

MakeServerFunction · 0.92

Calls 4

runSqlServerCommandFunction · 0.85
WithDebugPortFunction · 0.85
ErrorfMethod · 0.65
DoltDebugMethod · 0.65

Tested by

no test coverage detected