Documentation ¶
Overview ¶
Package crdb provides a CockroachDB-based storage layer implementation.
Index ¶
Constants ¶
View Source
const (
// StorageProviderName is the name of the storage provider.
StorageProviderName = "crdb"
)
Variables ¶
This section is empty.
Functions ¶
func GetDatabase ¶
GetDatabase returns the database handle for the provider.
func NewLogStorage ¶
func NewLogStorage(db *sql.DB, mf monitoring.MetricFactory) storage.LogStorage
NewLogStorage creates a storage.LogStorage instance for the specified CockroachDB URL. It assumes storage.AdminStorage is backed by the same CockroachDB database as well.
func NewSQLAdminStorage ¶
func NewSQLAdminStorage(db *sql.DB) storage.AdminStorage
NewSQLAdminStorage returns a SQL storage.AdminStorage implementation backed by DB. Should work for MySQL and CockroachDB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.