Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
Run docker with the given args, then wait for the given database to be ready. Start returns an io.Closer interface. The caller must call Close when the docker container is no longer needed, and should be terminated. Here is an example invocation:
defer dockerdb.Start( "-p 26257:26257 cockroachdb/cockroach:v20.2.4 start-single-node --insecure", "postgres", "postgresql://root@localhost:26257?sslmode=disable", ).Close()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.