Uses of Class
com.datastax.astra.client.Database
Packages that use Database
Package
Description
Entrypoint and core classes for the client.
Administration classes to manage Databases and Namespaces.
-
Uses of Database in com.datastax.astra.client
Methods in com.datastax.astra.client that return DatabaseModifier and TypeMethodDescriptionstatic DatabaseDataAPIClients.createDefaultLocalDatabase()Creates and configures aDatabaseclient specifically designed for interaction with a local instance of Stargate.DataAPIClient.getDatabase(String apiEndpoint) Retrieves a database client configured to interact with the Data API at the specified API endpoint.DataAPIClient.getDatabase(String apiEndpoint, String namespace) Creates and returns a database client configured to interact with the Data API at the specified API endpoint and within the given namespace.DataAPIClient.getDatabase(UUID databaseId) Retrieves a client for interacting with a specified database using its unique identifier.DataAPIClient.getDatabase(UUID databaseId, String namespace) Retrieves a client for a specific database, enabling interactions with the Data API.DataAPIClient.getDatabase(UUID databaseId, String namespace, String region) Retrieves a client for a specific database, enabling interactions with the Data API.Database.useKeyspace(String keyspace) Deprecated.Database.useNamespace(String namespace) Deprecated.Constructors in com.datastax.astra.client with parameters of type DatabaseModifierConstructorDescriptionprotectedCollection(Database db, String collectionName, CommandOptions<?> commandOptions, Class<T> clazz) Constructs an instance of a collection within the specified database. -
Uses of Database in com.datastax.astra.client.admin
Fields in com.datastax.astra.client.admin declared as DatabaseModifier and TypeFieldDescriptionprotected DatabaseAstraDBDatabaseAdmin.dbDatabase if initialized from the DB.protected DatabaseDataAPIDatabaseAdmin.dbDatabase if initialized from the DB.Methods in com.datastax.astra.client.admin that return DatabaseModifier and TypeMethodDescriptionAstraDBAdmin.getDatabase(UUID databaseId) Access the database functions.AstraDBAdmin.getDatabase(UUID databaseId, String keyspace) Access the database functions.AstraDBDatabaseAdmin.getDatabase()Access the Database associated with this admin class.AstraDBDatabaseAdmin.getDatabase(String keyspace) Access teh database with the default token.AstraDBDatabaseAdmin.getDatabase(String keyspace, String tokenUser) Access teh database with the specialized token.DataAPIDatabaseAdmin.getDatabase()Access the Database associated with this admin class.DataAPIDatabaseAdmin.getDatabase(String keyspace) Retrieves aDatabaseinstance that represents a specific database (or namespace) based on the provided namespace name.DataAPIDatabaseAdmin.getDatabase(String keyspace, String userToken) Access the Database associated with this admin class.DatabaseAdmin.getDatabase()Access the Database associated with this admin class.DatabaseAdmin.getDatabase(String keyspace) Retrieves aDatabaseinstance that represents a specific database (or namespace) based on the provided namespace name.DatabaseAdmin.getDatabase(String keyspace, String userToken) Access the Database associated with this admin class.Constructors in com.datastax.astra.client.admin with parameters of type DatabaseModifierConstructorDescriptionInitialize a database admin from token and database id.Initialize a database admin from token and database id.
useKeyspace(String)