public class SpannerEmulatorUtil extends Object
| Constructor and Description |
|---|
SpannerEmulatorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
maybeCreateInstanceAndDatabase(com.google.cloud.spanner.Spanner spanner,
com.google.cloud.spanner.DatabaseId databaseId)
Creates the instance and the database that are specified in the
DatabaseId on the
emulator that the given Spanner instance connects to if these do not already exist. |
public static void maybeCreateInstanceAndDatabase(com.google.cloud.spanner.Spanner spanner,
com.google.cloud.spanner.DatabaseId databaseId)
DatabaseId on the
emulator that the given Spanner instance connects to if these do not already exist.spanner - a Spanner instance that connects to an emulator instancedatabaseId - the id of the instance and the database to createCopyright © 2022 Google LLC. All rights reserved.