Documentation ¶
Index ¶
- func ApplyDDL(ctx context.Context, adminClient *dbadmin.DatabaseAdminClient, dbname string, ...) error
- func ApplyTestSchema(ctx context.Context, adminClient *dbadmin.DatabaseAdminClient, dbname string) error
- func CheckDatabaseExist(ctx context.Context, dbAdminCli *dbadmin.DatabaseAdminClient, ...) (bool, error)
- func CreateDatabase(ctx context.Context, dbAdminCli *dbadmin.DatabaseAdminClient, ...) error
- func CreateInstance(ctx context.Context, insAdminCli *insadmin.InstanceAdminClient, ...) error
- func DatabaseName(projectName, instanceName, dbName string) string
- func DeleteAllData(ctx context.Context, client *spanner.Client) error
- func DropDatabase(ctx context.Context, dbAdminCli *dbadmin.DatabaseAdminClient, ...) error
- func SetupDatabase(ctx context.Context, projectName, instanceName, dbName string) error
- func TestClient(ctx context.Context, projectName, instanceName, dbName string) (*spanner.Client, error)
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 CheckDatabaseExist ¶
func CreateDatabase ¶
func CreateInstance ¶
func DatabaseName ¶
func DropDatabase ¶
func SetupDatabase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.