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.useKeyspace
(String keyspace) Deprecated.Database.useNamespace
(String namespace) Deprecated.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 TypeFieldDescriptionprotected Database
AstraDBDatabaseAdmin.db
Database if initialized from the DB.protected Database
DataAPIDatabaseAdmin.db
Database if initialized from the DB.Modifier 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 aDatabase
instance 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 aDatabase
instance 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.ModifierConstructorDescriptionInitialize a database admin from token and database id.Initialize a database admin from token and database id.
useKeyspace(String)