testutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDDL

func ApplyDDL(ctx context.Context, adminClient *dbadmin.DatabaseAdminClient, dbname string, statements ...string) error

ApplyDDL applies DDL statements and waits until finished.

func ApplyTestSchema

func ApplyTestSchema(ctx context.Context, adminClient *dbadmin.DatabaseAdminClient, dbname string) error

ApplyTestScheme applies test schema in testdata.

func DeleteAllData

func DeleteAllData(ctx context.Context, client *spanner.Client) error

func SetupFakeSpanner

func SetupFakeSpanner(ctx context.Context, dbname string) (*spanner.Client, *dbadmin.DatabaseAdminClient, func(), error)

SetupFakeSpanner runs fake spanner server and create clients for the server. Please make sure to call stop func to stop the server and the clients.

Types

This section is empty.

Jump to

Keyboard shortcuts

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