Skip to content

Commit b307f79

Browse files
committed
Also test
1 parent f264e66 commit b307f79

File tree

8 files changed

+1032
-75
lines changed

8 files changed

+1032
-75
lines changed

dotnet/01_connect_database.ipynb

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,24 @@
1010
},
1111
{
1212
"cell_type": "code",
13-
"execution_count": null,
13+
"execution_count": 1,
1414
"id": "d3de619e",
1515
"metadata": {
1616
"polyglot_notebook": {
1717
"kernelName": "csharp"
1818
}
1919
},
20-
"outputs": [],
20+
"outputs": [
21+
{
22+
"data": {
23+
"text/html": [
24+
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>MongoDB.Driver, 3.5.2</span></li></ul></div></div>"
25+
]
26+
},
27+
"metadata": {},
28+
"output_type": "display_data"
29+
}
30+
],
2131
"source": [
2232
"#r \"nuget:MongoDB.Driver\"\n",
2333
"\n",
@@ -35,14 +45,22 @@
3545
},
3646
{
3747
"cell_type": "code",
38-
"execution_count": null,
48+
"execution_count": 2,
3949
"id": "53fb64de",
4050
"metadata": {
4151
"polyglot_notebook": {
4252
"kernelName": "csharp"
4353
}
4454
},
45-
"outputs": [],
55+
"outputs": [
56+
{
57+
"name": "stdout",
58+
"output_type": "stream",
59+
"text": [
60+
"MongoDB server version: { \"ok\" : 1.0, \"$clusterTime\" : { \"clusterTime\" : { \"$timestamp\" : { \"t\" : 1764328670, \"i\" : 1 } }, \"signature\" : { \"hash\" : { \"$binary\" : { \"base64\" : \"r+uB1/mTse/SpTzHY6pxMobZl3E=\", \"subType\" : \"00\" } }, \"keyId\" : 7577692335991947270 } }, \"operationTime\" : { \"$timestamp\" : { \"t\" : 1764328670, \"i\" : 1 } } }\n"
61+
]
62+
}
63+
],
4664
"source": [
4765
"string connectionString = \"mongodb://admin:mongodb@localhost:27017/\";\n",
4866
"\n",
@@ -61,7 +79,7 @@
6179
},
6280
{
6381
"cell_type": "code",
64-
"execution_count": null,
82+
"execution_count": 3,
6583
"id": "b9e4914d",
6684
"metadata": {
6785
"language_info": {
@@ -71,7 +89,46 @@
7189
"kernelName": "csharp"
7290
}
7391
},
74-
"outputs": [],
92+
"outputs": [
93+
{
94+
"name": "stdout",
95+
"output_type": "stream",
96+
"text": [
97+
"admin\n",
98+
" - system.users\n",
99+
" - system.version\n",
100+
" - system.keys\n",
101+
" - atlascli\n",
102+
" - local_atlas\n",
103+
"config\n",
104+
" - system.preimages\n",
105+
" - transactions\n",
106+
" - image_collection\n",
107+
" - sampledQueries\n",
108+
" - system.sessions\n",
109+
" - analyzeShardKeySplitPoints\n",
110+
" - system.indexBuilds\n",
111+
" - sampledQueriesDiff\n",
112+
"library\n",
113+
" - issueDetails\n",
114+
" - authors\n",
115+
" - users\n",
116+
" - reviews\n",
117+
" - books\n",
118+
"local\n",
119+
" - replset.oplogTruncateAfterPoint\n",
120+
" - system.views\n",
121+
" - replset.minvalid\n",
122+
" - replset.initialSyncId\n",
123+
" - startup_log\n",
124+
" - system.rollback.id\n",
125+
" - replset.election\n",
126+
" - oplog.rs\n",
127+
" - system.replset\n",
128+
" - system.tenantMigration.oplogView\n"
129+
]
130+
}
131+
],
75132
"source": [
76133
"var dbs = client.ListDatabaseNames().ToList();\n",
77134
"\n",

0 commit comments

Comments
 (0)