Skip to content

Commit d329970

Browse files
committed
alias
1 parent db0f7be commit d329970

File tree

2 files changed

+43
-49
lines changed

2 files changed

+43
-49
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"integrations/questdb.ipynb",
2626
"integrations/trinodb.ipynb",
2727
"integrations/oracle.ipynb",
28+
"integrations/snowflake.ipynb",
2829
]
2930
nb_execution_in_temp = True
3031
nb_execution_show_tb = True

doc/integrations/snowflake.ipynb

Lines changed: 42 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"cell_type": "code",
32-
"execution_count": 19,
32+
"execution_count": 1,
3333
"id": "ac2a4ee0",
3434
"metadata": {},
3535
"outputs": [
@@ -54,9 +54,11 @@
5454
]
5555
},
5656
{
57-
"cell_type": "raw",
58-
"id": "7c26ba87",
57+
"cell_type": "code",
58+
"execution_count": 18,
59+
"id": "b824fb60",
5960
"metadata": {},
61+
"outputs": [],
6062
"source": [
6163
"from sqlalchemy import create_engine\n",
6264
"from snowflake.sqlalchemy import URL\n",
@@ -88,17 +90,17 @@
8890
},
8991
{
9092
"cell_type": "code",
91-
"execution_count": 37,
93+
"execution_count": 3,
9294
"id": "09b2ac9e",
9395
"metadata": {},
9496
"outputs": [
9597
{
9698
"data": {
9799
"text/plain": [
98-
"('penguins.csv', <http.client.HTTPMessage at 0x1600c38b0>)"
100+
"('penguins.csv', <http.client.HTTPMessage at 0x12e38b100>)"
99101
]
100102
},
101-
"execution_count": 37,
103+
"execution_count": 3,
102104
"metadata": {},
103105
"output_type": "execute_result"
104106
}
@@ -114,36 +116,27 @@
114116
},
115117
{
116118
"cell_type": "code",
117-
"execution_count": 38,
119+
"execution_count": 4,
118120
"id": "65ff0181",
119121
"metadata": {},
120-
"outputs": [
121-
{
122-
"name": "stdout",
123-
"output_type": "stream",
124-
"text": [
125-
"The sql extension is already loaded. To reload it, use:\n",
126-
" %reload_ext sql\n"
127-
]
128-
}
129-
],
122+
"outputs": [],
130123
"source": [
131124
"%load_ext sql"
132125
]
133126
},
134127
{
135128
"cell_type": "code",
136-
"execution_count": 39,
129+
"execution_count": 5,
137130
"id": "803c43e4",
138131
"metadata": {},
139132
"outputs": [],
140133
"source": [
141-
"%sql engine"
134+
"%sql engine --alias connection"
142135
]
143136
},
144137
{
145138
"cell_type": "code",
146-
"execution_count": 40,
139+
"execution_count": 6,
147140
"id": "3e364576",
148141
"metadata": {},
149142
"outputs": [
@@ -153,7 +146,7 @@
153146
"344"
154147
]
155148
},
156-
"execution_count": 40,
149+
"execution_count": 6,
157150
"metadata": {},
158151
"output_type": "execute_result"
159152
}
@@ -178,7 +171,7 @@
178171
},
179172
{
180173
"cell_type": "code",
181-
"execution_count": 25,
174+
"execution_count": 7,
182175
"id": "23aa0941",
183176
"metadata": {},
184177
"outputs": [
@@ -206,7 +199,7 @@
206199
"+----------+"
207200
]
208201
},
209-
"execution_count": 25,
202+
"execution_count": 7,
210203
"metadata": {},
211204
"output_type": "execute_result"
212205
}
@@ -227,17 +220,17 @@
227220
},
228221
{
229222
"cell_type": "code",
230-
"execution_count": 26,
223+
"execution_count": 8,
231224
"id": "8f92b0f7",
232225
"metadata": {},
233226
"outputs": [
234227
{
235228
"data": {
236229
"text/html": [
237-
"<span style=\"None\">Running query in &#x27;snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&amp;role=SYSADMIN&amp;warehouse=COMPUTE_WH&#x27;</span>"
230+
"<span style=\"None\">Running query in &#x27;connection&#x27;</span>"
238231
],
239232
"text/plain": [
240-
"Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'"
233+
"Running query in 'connection'"
241234
]
242235
},
243236
"metadata": {},
@@ -279,7 +272,7 @@
279272
"+----------+"
280273
]
281274
},
282-
"execution_count": 26,
275+
"execution_count": 8,
283276
"metadata": {},
284277
"output_type": "execute_result"
285278
}
@@ -291,17 +284,17 @@
291284
},
292285
{
293286
"cell_type": "code",
294-
"execution_count": 27,
287+
"execution_count": 9,
295288
"id": "082c9090",
296289
"metadata": {},
297290
"outputs": [
298291
{
299292
"data": {
300293
"text/html": [
301-
"<span style=\"None\">Running query in &#x27;snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&amp;role=SYSADMIN&amp;warehouse=COMPUTE_WH&#x27;</span>"
294+
"<span style=\"None\">Running query in &#x27;connection&#x27;</span>"
302295
],
303296
"text/plain": [
304-
"Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'"
297+
"Running query in 'connection'"
305298
]
306299
},
307300
"metadata": {},
@@ -355,7 +348,7 @@
355348
"+-----------+-------+"
356349
]
357350
},
358-
"execution_count": 27,
351+
"execution_count": 9,
359352
"metadata": {},
360353
"output_type": "execute_result"
361354
}
@@ -380,17 +373,17 @@
380373
},
381374
{
382375
"cell_type": "code",
383-
"execution_count": 28,
376+
"execution_count": 10,
384377
"id": "a108569c",
385378
"metadata": {},
386379
"outputs": [
387380
{
388381
"data": {
389382
"text/html": [
390-
"<span style=\"None\">Running query in &#x27;snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&amp;role=SYSADMIN&amp;warehouse=COMPUTE_WH&#x27;</span>"
383+
"<span style=\"None\">Running query in &#x27;connection&#x27;</span>"
391384
],
392385
"text/plain": [
393-
"Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'"
386+
"Running query in 'connection'"
394387
]
395388
},
396389
"metadata": {},
@@ -419,7 +412,7 @@
419412
},
420413
{
421414
"cell_type": "code",
422-
"execution_count": 30,
415+
"execution_count": 11,
423416
"id": "6768b87e",
424417
"metadata": {},
425418
"outputs": [
@@ -433,10 +426,10 @@
433426
{
434427
"data": {
435428
"text/html": [
436-
"<span style=\"None\">Running query in &#x27;snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&amp;role=SYSADMIN&amp;warehouse=COMPUTE_WH&#x27;</span>"
429+
"<span style=\"None\">Running query in &#x27;connection&#x27;</span>"
437430
],
438431
"text/plain": [
439-
"Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'"
432+
"Running query in 'connection'"
440433
]
441434
},
442435
"metadata": {},
@@ -490,7 +483,7 @@
490483
"+-----------+--------------------+"
491484
]
492485
},
493-
"execution_count": 30,
486+
"execution_count": 11,
494487
"metadata": {},
495488
"output_type": "execute_result"
496489
}
@@ -512,7 +505,7 @@
512505
},
513506
{
514507
"cell_type": "code",
515-
"execution_count": 31,
508+
"execution_count": 12,
516509
"id": "7bcf72de",
517510
"metadata": {},
518511
"outputs": [
@@ -551,7 +544,7 @@
551544
},
552545
{
553546
"cell_type": "code",
554-
"execution_count": 32,
547+
"execution_count": 13,
555548
"id": "1397fbb6",
556549
"metadata": {},
557550
"outputs": [
@@ -651,7 +644,7 @@
651644
"+-------------------+-------------------+----------+---------+---------------+---------+-------------+"
652645
]
653646
},
654-
"execution_count": 32,
647+
"execution_count": 13,
655648
"metadata": {},
656649
"output_type": "execute_result"
657650
}
@@ -672,7 +665,7 @@
672665
},
673666
{
674667
"cell_type": "code",
675-
"execution_count": 33,
668+
"execution_count": 14,
676669
"id": "f3bad484",
677670
"metadata": {},
678671
"outputs": [],
@@ -683,17 +676,17 @@
683676
},
684677
{
685678
"cell_type": "code",
686-
"execution_count": 34,
679+
"execution_count": 15,
687680
"id": "aa7319e8",
688681
"metadata": {},
689682
"outputs": [
690683
{
691684
"data": {
692685
"text/html": [
693-
"<span style=\"None\">Running query in &#x27;snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&amp;role=SYSADMIN&amp;warehouse=COMPUTE_WH&#x27;</span>"
686+
"<span style=\"None\">Running query in &#x27;connection&#x27;</span>"
694687
],
695688
"text/plain": [
696-
"Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'"
689+
"Running query in 'connection'"
697690
]
698691
},
699692
"metadata": {},
@@ -757,7 +750,7 @@
757750
"+-----------+--------+"
758751
]
759752
},
760-
"execution_count": 34,
753+
"execution_count": 15,
761754
"metadata": {},
762755
"output_type": "execute_result"
763756
}
@@ -778,7 +771,7 @@
778771
},
779772
{
780773
"cell_type": "code",
781-
"execution_count": 43,
774+
"execution_count": 16,
782775
"id": "edbae739",
783776
"metadata": {},
784777
"outputs": [
@@ -792,7 +785,7 @@
792785
{
793786
"data": {
794787
"application/vnd.jupyter.widget-view+json": {
795-
"model_id": "3b7206dffaab41c9a1fddaa27d192c1a",
788+
"model_id": "a82fb668e7ab42bfb96eb501dfbe50b4",
796789
"version_major": 2,
797790
"version_minor": 0
798791
},
@@ -821,7 +814,7 @@
821814
},
822815
{
823816
"cell_type": "code",
824-
"execution_count": 52,
817+
"execution_count": 17,
825818
"id": "20db062a",
826819
"metadata": {},
827820
"outputs": [],

0 commit comments

Comments
 (0)