Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
com.google.cloud.spanner.testing |
Modifier and Type | Method and Description |
---|---|
Database |
Instance.getDatabase(String databaseId) |
Database |
DatabaseAdminClient.getDatabase(String instanceId,
String databaseId)
Gets the current state of a Cloud Spanner database.
|
Database |
Database.reload()
Fetches the database's current information.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata> |
Instance.createDatabase(String databaseId,
Iterable<String> statements)
Creates a new database in this instance.
|
com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata> |
DatabaseAdminClient.createDatabase(String instanceId,
String databaseId,
Iterable<String> statements)
Creates a new database in a Cloud Spanner instance.
|
com.google.api.gax.paging.Page<Database> |
Instance.listDatabases() |
com.google.api.gax.paging.Page<Database> |
DatabaseAdminClient.listDatabases(String instanceId,
Options.ListOption... options)
Returns the list of Cloud Spanner database in the given instance.
|
Modifier and Type | Method and Description |
---|---|
Database |
RemoteSpannerHelper.createTestDatabase(Iterable<String> statements)
Creates a test database defined by
statements in the test instance. |
Database |
RemoteSpannerHelper.createTestDatabase(String... statements)
Creates a test database defined by
statements . |
Modifier and Type | Method and Description |
---|---|
BatchClient |
RemoteSpannerHelper.getBatchClient(Database db) |
DatabaseClient |
RemoteSpannerHelper.getDatabaseClient(Database db) |
Copyright © 2019 Google LLC. All rights reserved.