Uses of Class
com.datastax.astra.client.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
Modifier and TypeMethodDescriptionstatic Database
DataAPIClients.createDefaultLocalDatabase()
Creates and configures aDatabase
client 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.useNamespace
(String namespace) This mutates the namespace to be used.ModifierConstructorDescriptionprotected
Collection
(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
Modifier and TypeMethodDescriptionAstraDBAdmin.getDatabase
(UUID databaseId) Access the database functions.AstraDBAdmin.getDatabase
(UUID databaseId, String namespace) Access the database functions.AstraDBDatabaseAdmin.getDatabase
(String namespaceName) Access teh database with the default token.AstraDBDatabaseAdmin.getDatabase
(String namespaceName, String tokenUser) Access teh database with the specialized token.DataAPIDatabaseAdmin.getDatabase
(String namespaceName) Retrieves aDatabase
instance that represents a specific database (or namespace) based on the provided namespace name.DataAPIDatabaseAdmin.getDatabase
(String namespaceName, String userToken) Access the Database associated with this admin class.default Database
DatabaseAdmin.getDatabase()
Access the Database asscociated with this admin class.DatabaseAdmin.getDatabase
(String namespaceName) Retrieves aDatabase
instance that represents a specific database (or namespace) based on the provided namespace name.DatabaseAdmin.getDatabase
(String namespaceName, String userToken) Access the Database associated with this admin class.