sqlutils

package
v0.0.0-...-244743e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PGUrl

func PGUrl(t util.Tester, ts *server.TestServer, user, tempDir, prefix string) (url.URL, func())

PGUrl returns a postgres connection url which connects to this server with the given user. Returns a connection string and a cleanup function which must be called after any connection created using the string has been closed.

In order to connect securely using postgres, this method will create temporary on-disk copies of certain embedded security certificates. The certificates will be created as temporary files in the provided directory, and their filenames will have the provided prefix. The returned cleanup function will delete these temporary files.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL