Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRandomTestingSchemaName ¶ added in v0.29.0
CreateRandomTestingSchemaName creates a random schema name string.
func OpenUnique ¶
func OpenUnique(connStr string, schemaPrefix string) (db *dbutil.TempDatabase, err error)
OpenUnique opens a temporary unique CockroachDB database that will be cleaned up when closed. It is expected that this should normally be used by way of "storj.io/storj/private/dbutil/tempdb".OpenUnique() instead of calling it directly.
Types ¶
type Connector ¶ added in v0.28.0
Connector is a thin wrapper around a pq-based connector. This allows Driver to satisfy driver.DriverContext, and avoids weird breakage if and when we upgrade from pq 1.0 to pq 1.2 or higher.
type Driver ¶ added in v0.28.0
Driver is the type for the "cockroach" sql/database driver. It uses github.com/lib/pq under the covers because of Cockroach's PostgreSQL compatibility, but allows differentiation between pg and crdb connections.