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

Function CreateServer

testing/go/framework.go:403–407  ·  view source on GitHub ↗

CreateServer creates a server with the given database, returning a connection to the server. The server will close when the connection is closed (or loses its connection to the server). The accompanying [svcs.Controller] may be used to wait until the server has closed.

(t *testing.T, database string)

Source from the content-addressed store, hash-verified

401// when the connection is closed (or loses its connection to the server). The accompanying [svcs.Controller] may be used
402// to wait until the server has closed.
403func CreateServer(t *testing.T, database string) (context.Context, *Connection, *svcs.Controller) {
404 port, err := sql.GetEmptyPort()
405 require.NoError(t, err)
406 return CreateServerWithPort(t, database, port)
407}
408
409// CreateServerWithPort creates a server with the given database and port, returning a connection to the server. The server will close
410// when the connection is closed (or loses its connection to the server). The accompanying [svcs.Controller] may be used

Callers 7

RunReplicationScriptFunction · 0.70
TestBindingWithOidZeroFunction · 0.70
TestIssue2386Function · 0.70
TestBindingWithTextArrayFunction · 0.70
RunScriptFunction · 0.70
TestMultipleStatementsFunction · 0.70
RunScriptNFunction · 0.70

Calls 1

CreateServerWithPortFunction · 0.85

Tested by 6

RunReplicationScriptFunction · 0.56
TestBindingWithOidZeroFunction · 0.56
TestIssue2386Function · 0.56
TestBindingWithTextArrayFunction · 0.56
TestMultipleStatementsFunction · 0.56
RunScriptNFunction · 0.56