You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Set the active keyspace to use for all subsequent operations (can be overridden in each method call via an overload with the <see cref="DatabaseCommandOptions"/> parameter)
Copy file name to clipboardExpand all lines: src/DataStax.AstraDB.DataApi/DataAPIClient.cs
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -169,20 +169,22 @@ public Database GetDatabase(string apiEndpoint)
169
169
}
170
170
171
171
/// <summary>
172
-
/// Gets an instance of the <see cref="Database"/> class given the API Endpoint and the keyspace to connect to.
172
+
/// Gets an instance of the <see cref="Database"/> class given the API Endpoint of the database to connect to, a token to use, and optionally a keyspace.
173
+
/// If the keyspace is not provided the default keyspace will be used.
173
174
/// </summary>
174
175
/// <param name="apiEndpoint">The API endpoint of the database.</param>
175
-
/// <param name="keyspace">The keyspace to connect to.</param>
176
+
/// <param name="token">The specific token to use for this database connection.</param>
177
+
/// <param name="keyspace">Optional: The keyspace to connect to.</param>
176
178
/// <returns>An instance of the <see cref="Database"/> class.</returns>
177
179
/// <example>
178
180
/// <code>
179
181
/// var client = new DataApiClient("token");
180
182
/// var database = client.GetDatabase("https://1ae8dd5d-19ce-452d-9df8-6e5b78b82ca7-us-east1.apps.astra.datastax.com", "myKeyspace");
0 commit comments