bt

package
v0.0.0-...-5ff78a6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// TestingAppProfile is the profile that can be used when running an instance locally
	// or for integration tests (unit tests should primarily use the BigTable Emulator).
	TestingAppProfile = "local-testing"
)

Variables

This section is empty.

Functions

func DeleteTables

func DeleteTables(projectID, instanceID string, tableNames ...string) (err error)

DeleteTables deletes the tables given in the TableConfig.

func EnsureNotEmulator

func EnsureNotEmulator()

EnsureNotEmulator will panic if it detects the BigTable Emulator is configured.

func ErrToCode

func ErrToCode(err error) (error, codes.Code)

ErrToCode returns the error that is passed and a gRPC code extracted from the error. If the error did not originate in gRPC the returned code is codes.Unknown. See https://godoc.org/google.golang.org/grpc/codes for a list of codes.

func InitBigtable

func InitBigtable(projectID, instanceID, tableID string, colFamilies []string) error

InitBigtable takes a list of TableConfigs and creates the given tables and column families if they don't exist already.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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