|
9 | 9 | "# Using the `json` type" |
10 | 10 | ] |
11 | 11 | }, |
| 12 | + { |
| 13 | + "cell_type": "markdown", |
| 14 | + "id": "62450023", |
| 15 | + "metadata": {}, |
| 16 | + "source": [ |
| 17 | + "> ⚠️ Note the following before using the `json` type\n", |
| 18 | + "> - Supported only for MySQL >= 8.0 when [JSON_VALUE](https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html#function_json-value) introduced.\n", |
| 19 | + "> - Equivalent Percona is fully-compatible.\n", |
| 20 | + "> - MariaDB is not supported since [JSON_VALUE](https://mariadb.com/kb/en/json_value/#syntax) does not allow type specification like MySQL's.\n", |
| 21 | + "> - Not yet supported in DataJoint MATLAB" |
| 22 | + ] |
| 23 | + }, |
12 | 24 | { |
13 | 25 | "attachments": {}, |
14 | 26 | "cell_type": "markdown", |
|
22 | 34 | }, |
23 | 35 | { |
24 | 36 | "cell_type": "code", |
25 | | - "execution_count": 2, |
| 37 | + "execution_count": 1, |
26 | 38 | "id": "bc0b6f54-8f11-45f4-bf8d-e1058ee0056f", |
27 | 39 | "metadata": {}, |
28 | 40 | "outputs": [], |
|
54 | 66 | }, |
55 | 67 | { |
56 | 68 | "cell_type": "code", |
57 | | - "execution_count": 3, |
| 69 | + "execution_count": 2, |
58 | 70 | "id": "dc318298-b819-4f06-abbd-7bb7544dd431", |
59 | 71 | "metadata": {}, |
60 | 72 | "outputs": [ |
61 | 73 | { |
62 | 74 | "name": "stderr", |
63 | 75 | "output_type": "stream", |
64 | 76 | "text": [ |
65 | | - "[2023-02-08 23:40:24,660][INFO]: Connecting [email protected]:3306\n", |
66 | | - "[2023-02-08 23:40:25,454][INFO]: Connected [email protected]:3306\n" |
| 77 | + "[2023-02-12 00:14:33,027][INFO]: Connecting [email protected]:3306\n", |
| 78 | + "[2023-02-12 00:14:33,039][INFO]: Connected [email protected]:3306\n" |
67 | 79 | ] |
68 | 80 | } |
69 | 81 | ], |
|
73 | 85 | }, |
74 | 86 | { |
75 | 87 | "cell_type": "code", |
76 | | - "execution_count": 4, |
| 88 | + "execution_count": 3, |
77 | 89 | "id": "4aaf96db-85d9-4e94-a4c3-3558f4cc6671", |
78 | 90 | "metadata": {}, |
79 | 91 | "outputs": [], |
|
108 | 120 | }, |
109 | 121 | { |
110 | 122 | "cell_type": "code", |
111 | | - "execution_count": 5, |
| 123 | + "execution_count": 4, |
112 | 124 | "id": "30f0d62e", |
113 | 125 | "metadata": {}, |
114 | 126 | "outputs": [], |
|
150 | 162 | }, |
151 | 163 | { |
152 | 164 | "cell_type": "code", |
153 | | - "execution_count": 6, |
| 165 | + "execution_count": 5, |
154 | 166 | "id": "b532e16c", |
155 | 167 | "metadata": {}, |
156 | 168 | "outputs": [], |
|
194 | 206 | }, |
195 | 207 | { |
196 | 208 | "cell_type": "code", |
197 | | - "execution_count": 7, |
| 209 | + "execution_count": 6, |
198 | 210 | "id": "0e3b517c", |
199 | 211 | "metadata": {}, |
200 | 212 | "outputs": [ |
|
279 | 291 | " (Total: 3)" |
280 | 292 | ] |
281 | 293 | }, |
282 | | - "execution_count": 7, |
| 294 | + "execution_count": 6, |
283 | 295 | "metadata": {}, |
284 | 296 | "output_type": "execute_result" |
285 | 297 | } |
|
306 | 318 | }, |
307 | 319 | { |
308 | 320 | "cell_type": "code", |
309 | | - "execution_count": 8, |
| 321 | + "execution_count": 7, |
310 | 322 | "id": "81efda24", |
311 | 323 | "metadata": {}, |
312 | 324 | "outputs": [ |
|
387 | 399 | " (Total: 1)" |
388 | 400 | ] |
389 | 401 | }, |
390 | | - "execution_count": 8, |
| 402 | + "execution_count": 7, |
391 | 403 | "metadata": {}, |
392 | 404 | "output_type": "execute_result" |
393 | 405 | } |
|
399 | 411 | }, |
400 | 412 | { |
401 | 413 | "cell_type": "code", |
402 | | - "execution_count": 9, |
| 414 | + "execution_count": 8, |
403 | 415 | "id": "fd7b855d", |
404 | 416 | "metadata": {}, |
405 | 417 | "outputs": [ |
|
480 | 492 | " (Total: 1)" |
481 | 493 | ] |
482 | 494 | }, |
483 | | - "execution_count": 9, |
| 495 | + "execution_count": 8, |
484 | 496 | "metadata": {}, |
485 | 497 | "output_type": "execute_result" |
486 | 498 | } |
|
492 | 504 | }, |
493 | 505 | { |
494 | 506 | "cell_type": "code", |
495 | | - "execution_count": 10, |
| 507 | + "execution_count": 9, |
496 | 508 | "id": "b76ebb75", |
497 | 509 | "metadata": {}, |
498 | 510 | "outputs": [ |
|
573 | 585 | " (Total: 1)" |
574 | 586 | ] |
575 | 587 | }, |
576 | | - "execution_count": 10, |
| 588 | + "execution_count": 9, |
577 | 589 | "metadata": {}, |
578 | 590 | "output_type": "execute_result" |
579 | 591 | } |
|
585 | 597 | }, |
586 | 598 | { |
587 | 599 | "cell_type": "code", |
588 | | - "execution_count": 11, |
| 600 | + "execution_count": 10, |
589 | 601 | "id": "b787784c", |
590 | 602 | "metadata": {}, |
591 | 603 | "outputs": [ |
|
668 | 680 | " (Total: 2)" |
669 | 681 | ] |
670 | 682 | }, |
671 | | - "execution_count": 11, |
| 683 | + "execution_count": 10, |
672 | 684 | "metadata": {}, |
673 | 685 | "output_type": "execute_result" |
674 | 686 | } |
|
709 | 721 | }, |
710 | 722 | { |
711 | 723 | "cell_type": "code", |
712 | | - "execution_count": 14, |
| 724 | + "execution_count": 11, |
713 | 725 | "id": "8fb8334a", |
714 | 726 | "metadata": {}, |
715 | 727 | "outputs": [ |
|
800 | 812 | " (Total: 3)" |
801 | 813 | ] |
802 | 814 | }, |
803 | | - "execution_count": 14, |
| 815 | + "execution_count": 11, |
804 | 816 | "metadata": {}, |
805 | 817 | "output_type": "execute_result" |
806 | 818 | } |
|
816 | 828 | }, |
817 | 829 | { |
818 | 830 | "cell_type": "code", |
819 | | - "execution_count": 15, |
| 831 | + "execution_count": 12, |
820 | 832 | "id": "bb5f0448", |
821 | 833 | "metadata": {}, |
822 | 834 | "outputs": [ |
|
828 | 840 | " {'name': 'marketing', 'car_name': None, 'car_length': None}]" |
829 | 841 | ] |
830 | 842 | }, |
831 | | - "execution_count": 15, |
| 843 | + "execution_count": 12, |
832 | 844 | "metadata": {}, |
833 | 845 | "output_type": "execute_result" |
834 | 846 | } |
|
839 | 851 | }, |
840 | 852 | { |
841 | 853 | "cell_type": "code", |
842 | | - "execution_count": 16, |
| 854 | + "execution_count": 13, |
843 | 855 | "id": "a307dfd7", |
844 | 856 | "metadata": {}, |
845 | 857 | "outputs": [ |
|
930 | 942 | " (Total: 3)" |
931 | 943 | ] |
932 | 944 | }, |
933 | | - "execution_count": 16, |
| 945 | + "execution_count": 13, |
934 | 946 | "metadata": {}, |
935 | 947 | "output_type": "execute_result" |
936 | 948 | } |
|
946 | 958 | }, |
947 | 959 | { |
948 | 960 | "cell_type": "code", |
949 | | - "execution_count": 17, |
| 961 | + "execution_count": 14, |
950 | 962 | "id": "8a93dbf9", |
951 | 963 | "metadata": {}, |
952 | 964 | "outputs": [ |
|
958 | 970 | " {'name': 'marketing', 'car_name': None, 'car_length': None}]" |
959 | 971 | ] |
960 | 972 | }, |
961 | | - "execution_count": 17, |
| 973 | + "execution_count": 14, |
962 | 974 | "metadata": {}, |
963 | 975 | "output_type": "execute_result" |
964 | 976 | } |
|
986 | 998 | }, |
987 | 999 | { |
988 | 1000 | "cell_type": "code", |
989 | | - "execution_count": 18, |
| 1001 | + "execution_count": 16, |
990 | 1002 | "id": "0e739932", |
991 | 1003 | "metadata": {}, |
992 | 1004 | "outputs": [ |
|
1004 | 1016 | } |
1005 | 1017 | ], |
1006 | 1018 | "source": [ |
1007 | | - "definition = Team.describe()\n", |
1008 | | - "print(definition)" |
| 1019 | + "rebuilt_definition = Team.describe()\n", |
| 1020 | + "print(rebuilt_definition)" |
1009 | 1021 | ] |
1010 | 1022 | }, |
1011 | 1023 | { |
|
1027 | 1039 | }, |
1028 | 1040 | { |
1029 | 1041 | "cell_type": "code", |
1030 | | - "execution_count": 19, |
| 1042 | + "execution_count": 17, |
1031 | 1043 | "id": "d9cc28a3-3ffd-4126-b7e9-bc6365040b93", |
1032 | 1044 | "metadata": {}, |
1033 | 1045 | "outputs": [], |
|
1046 | 1058 | ], |
1047 | 1059 | "metadata": { |
1048 | 1060 | "kernelspec": { |
1049 | | - "display_name": "Python 3", |
| 1061 | + "display_name": "Python 3.7.16 64-bit", |
1050 | 1062 | "language": "python", |
1051 | 1063 | "name": "python3" |
1052 | 1064 | }, |
|
0 commit comments