Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ebba922
set ConfigureAwait(false) for async calls
stephenatsembit Jan 22, 2025
27e0cc1
refactor command options, refactor naming, solidify sync/async method…
stephenatsembit Jan 28, 2025
012d71e
add sample appsettings file, remove test file
stephenatsembit Jan 28, 2025
7ad7210
remove bin and obj folders, move defaults to proper end of commandopt…
stephenatsembit Jan 30, 2025
37475b1
add unittest bin/obj, and appsettings to ignore
stephenatsembit Jan 30, 2025
5da9ccc
runnable state (renaming and test tweaks)
jeffrey-elliott Jan 31, 2025
6e14fe9
rename, .gitignore, DbId for admin tests
jeffrey-elliott Jan 31, 2025
01cd335
Merge pull request #1 from stephenatsembit/db_admin
a-random-steve Feb 1, 2025
4a09303
added ListDatabases, ListDatabasesNames and tests
jeffrey-elliott Feb 1, 2025
0044e28
turn off implicit usings to make .net462 happy
stephenatsembit Feb 1, 2025
c84088e
Merge pull request #2 from stephenatsembit/db_admin
a-random-steve Feb 1, 2025
23e7e3a
added DoesDatabaseExist by string and by guid
jeffrey-elliott Feb 6, 2025
114a373
Merge pull request #3 from stephenatsembit/db_admin
a-random-steve Feb 7, 2025
6c9e310
formatting
stephenatsembit Feb 7, 2025
6cb1cb4
todo for integration test to check for existence by name
stephenatsembit Feb 7, 2025
b4233e9
utilizing CommandOptions to affect the http calls, adding methods to …
stephenatsembit Feb 12, 2025
ae9082c
added create, drop; consistent naming
jeffrey-elliott Feb 12, 2025
de696d1
refs and formatting
jeffrey-elliott Feb 12, 2025
76d117a
spacing
jeffrey-elliott Feb 12, 2025
3f4b528
move test db name into config
stephenatsembit Feb 13, 2025
4d8614d
handle sync waitfordatabase
stephenatsembit Feb 13, 2025
0ce4e10
cleanup async methods
stephenatsembit Feb 13, 2025
d2526fa
refs and spacing
jeffrey-elliott Feb 13, 2025
ec11ccf
async delagte for CreateDatabase
jeffrey-elliott Feb 14, 2025
c775326
added DatabaseCreationOptions
jeffrey-elliott Feb 14, 2025
3024e03
remove t/s code
jeffrey-elliott Feb 14, 2025
4bd98d0
added CommandOptions
jeffrey-elliott Feb 14, 2025
d187fc1
finish handling of keyspace for database, naming adjustments
stephenatsembit Feb 17, 2025
d102ea2
Merge pull request #5 from stephenatsembit/database-admin
a-random-steve Feb 17, 2025
42e26c5
Merge commit '2334bb53b9027422e19c36f2165408c636ddc279'
stephenatsembit Feb 17, 2025
e05da62
fix merge errors
stephenatsembit Feb 17, 2025
4721ae1
additional merge issues
stephenatsembit Feb 17, 2025
3456673
beginnings of insert many
stephenatsembit Feb 20, 2025
de1ab3b
Merge branch 'collections-inserts' into collection-insert-many
stephenatsembit Feb 21, 2025
46cf764
fix merge issue
stephenatsembit Feb 21, 2025
dbb9cf6
collection.InsertMany, and initial FindOne and FindMany implementations
stephenatsembit Mar 5, 2025
ec14f98
FindOne fixes
stephenatsembit Mar 5, 2025
c211213
finish initial draft of querying single and multiple documents
stephenatsembit Mar 24, 2025
c27bf7a
Merge pull request #6 from stephenatsembit/collection-insert-many
a-random-steve Mar 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ test/DataStax.AstraDB.DataAPI.IntegrationTests/appsettings.sample.json
test/DataStax.AstraDB.DataApi.UnitTests/bin
test/DataStax.AstraDB.DataApi.UnitTests/obj
appsettings.json
latest_run.log
3 changes: 1 addition & 2 deletions src/DataStax.AstraDB.DataApi/Admin/AstraDatabasesAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -413,6 +412,6 @@ internal Task<DatabaseInfo> GetDatabaseInfoAsync(Guid dbGuid, CommandOptions opt

private Command CreateCommand()
{
return new Command(_client, OptionsTree, new AdminCommandUrlBuilder(OptionsTree));
return new Command(_client, OptionsTree, new AdminCommandUrlBuilder());
}
}
16 changes: 16 additions & 0 deletions src/DataStax.AstraDB.DataApi/Admin/DatabaseCreationOptions.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

using DataStax.AstraDB.DataApi.Core;
using System.Text.Json.Serialization;

Expand Down
Loading