|
33 | 33 | }, |
34 | 34 | { |
35 | 35 | "cell_type": "code", |
36 | | - "execution_count": 6, |
| 36 | + "execution_count": 2, |
37 | 37 | "metadata": {}, |
38 | 38 | "outputs": [ |
39 | 39 | { |
|
78 | 78 | "[]" |
79 | 79 | ] |
80 | 80 | }, |
81 | | - "execution_count": 6, |
| 81 | + "execution_count": 2, |
82 | 82 | "metadata": {}, |
83 | 83 | "output_type": "execute_result" |
84 | 84 | } |
|
89 | 89 | }, |
90 | 90 | { |
91 | 91 | "cell_type": "code", |
92 | | - "execution_count": 7, |
| 92 | + "execution_count": 3, |
93 | 93 | "metadata": {}, |
94 | 94 | "outputs": [ |
95 | 95 | { |
96 | 96 | "name": "stderr", |
97 | 97 | "output_type": "stream", |
98 | 98 | "text": [ |
99 | | - "[2025-01-14 01:25:11,122][INFO]: Connecting root@localhost:3306\n", |
100 | | - "[2025-01-14 01:25:11,146][INFO]: Connected root@localhost:3306\n" |
| 99 | + "[2025-01-15 01:40:49,567][INFO]: Connecting root@localhost:3306\n", |
| 100 | + "[2025-01-15 01:40:49,584][INFO]: Connected root@localhost:3306\n" |
101 | 101 | ] |
102 | 102 | } |
103 | 103 | ], |
|
109 | 109 | }, |
110 | 110 | { |
111 | 111 | "cell_type": "code", |
112 | | - "execution_count": 8, |
| 112 | + "execution_count": 4, |
113 | 113 | "metadata": {}, |
114 | 114 | "outputs": [ |
115 | 115 | { |
|
270 | 270 | "</svg>" |
271 | 271 | ], |
272 | 272 | "text/plain": [ |
273 | | - "<datajoint.diagram.Diagram at 0x7f065b758a50>" |
| 273 | + "<datajoint.diagram.Diagram at 0x7f2a5ab50450>" |
274 | 274 | ] |
275 | 275 | }, |
276 | | - "execution_count": 8, |
| 276 | + "execution_count": 4, |
277 | 277 | "metadata": {}, |
278 | 278 | "output_type": "execute_result" |
279 | 279 | } |
280 | 280 | ], |
281 | 281 | "source": [ |
282 | 282 | "dj.Diagram(schema)" |
283 | 283 | ] |
| 284 | + }, |
| 285 | + { |
| 286 | + "cell_type": "code", |
| 287 | + "execution_count": 5, |
| 288 | + "metadata": {}, |
| 289 | + "outputs": [ |
| 290 | + { |
| 291 | + "data": { |
| 292 | + "text/html": [ |
| 293 | + "\n", |
| 294 | + " \n", |
| 295 | + " <style type=\"text/css\">\n", |
| 296 | + " .Table{\n", |
| 297 | + " border-collapse:collapse;\n", |
| 298 | + " }\n", |
| 299 | + " .Table th{\n", |
| 300 | + " background: #A0A0A0; color: #ffffff; padding:4px; border:#f0e0e0 1px solid;\n", |
| 301 | + " font-weight: normal; font-family: monospace; font-size: 100%;\n", |
| 302 | + " }\n", |
| 303 | + " .Table td{\n", |
| 304 | + " padding:4px; border:#f0e0e0 1px solid; font-size:100%;\n", |
| 305 | + " }\n", |
| 306 | + " .Table tr:nth-child(odd){\n", |
| 307 | + " background: #ffffff;\n", |
| 308 | + " color: #000000;\n", |
| 309 | + " }\n", |
| 310 | + " .Table tr:nth-child(even){\n", |
| 311 | + " background: #f3f1ff;\n", |
| 312 | + " color: #000000;\n", |
| 313 | + " }\n", |
| 314 | + " /* Tooltip container */\n", |
| 315 | + " .djtooltip {\n", |
| 316 | + " }\n", |
| 317 | + " /* Tooltip text */\n", |
| 318 | + " .djtooltip .djtooltiptext {\n", |
| 319 | + " visibility: hidden;\n", |
| 320 | + " width: 120px;\n", |
| 321 | + " background-color: black;\n", |
| 322 | + " color: #fff;\n", |
| 323 | + " text-align: center;\n", |
| 324 | + " padding: 5px 0;\n", |
| 325 | + " border-radius: 6px;\n", |
| 326 | + " /* Position the tooltip text - see examples below! */\n", |
| 327 | + " position: absolute;\n", |
| 328 | + " z-index: 1;\n", |
| 329 | + " }\n", |
| 330 | + " #primary {\n", |
| 331 | + " font-weight: bold;\n", |
| 332 | + " color: black;\n", |
| 333 | + " }\n", |
| 334 | + " #nonprimary {\n", |
| 335 | + " font-weight: normal;\n", |
| 336 | + " color: white;\n", |
| 337 | + " }\n", |
| 338 | + "\n", |
| 339 | + " /* Show the tooltip text when you mouse over the tooltip container */\n", |
| 340 | + " .djtooltip:hover .djtooltiptext {\n", |
| 341 | + " visibility: visible;\n", |
| 342 | + " }\n", |
| 343 | + " </style>\n", |
| 344 | + " \n", |
| 345 | + " <b></b>\n", |
| 346 | + " <div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n", |
| 347 | + " <table border=\"1\" class=\"Table\">\n", |
| 348 | + " <thead> <tr style=\"text-align: right;\"> <th> <div class=\"djtooltip\">\n", |
| 349 | + " <p id=\"primary\">customerNumber</p>\n", |
| 350 | + " <span class=\"djtooltiptext\"></span>\n", |
| 351 | + " </div></th><th><div class=\"djtooltip\">\n", |
| 352 | + " <p id=\"primary\">checkNumber</p>\n", |
| 353 | + " <span class=\"djtooltiptext\"></span>\n", |
| 354 | + " </div></th><th><div class=\"djtooltip\">\n", |
| 355 | + " <p id=\"nonprimary\">paymentDate</p>\n", |
| 356 | + " <span class=\"djtooltiptext\"></span>\n", |
| 357 | + " </div></th><th><div class=\"djtooltip\">\n", |
| 358 | + " <p id=\"nonprimary\">amount</p>\n", |
| 359 | + " <span class=\"djtooltiptext\"></span>\n", |
| 360 | + " </div> </th> </tr> </thead>\n", |
| 361 | + " <tbody> <tr> <td>103</td>\n", |
| 362 | + "<td>HQ336336</td>\n", |
| 363 | + "<td>2004-10-19</td>\n", |
| 364 | + "<td>6066.78</td></tr><tr><td>103</td>\n", |
| 365 | + "<td>JM555205</td>\n", |
| 366 | + "<td>2003-06-05</td>\n", |
| 367 | + "<td>14571.44</td></tr><tr><td>103</td>\n", |
| 368 | + "<td>OM314933</td>\n", |
| 369 | + "<td>2004-12-18</td>\n", |
| 370 | + "<td>1676.14</td></tr><tr><td>112</td>\n", |
| 371 | + "<td>BO864823</td>\n", |
| 372 | + "<td>2004-12-17</td>\n", |
| 373 | + "<td>14191.12</td></tr><tr><td>112</td>\n", |
| 374 | + "<td>HQ55022</td>\n", |
| 375 | + "<td>2003-06-06</td>\n", |
| 376 | + "<td>32641.98</td></tr><tr><td>112</td>\n", |
| 377 | + "<td>ND748579</td>\n", |
| 378 | + "<td>2004-08-20</td>\n", |
| 379 | + "<td>33347.88</td></tr><tr><td>114</td>\n", |
| 380 | + "<td>GG31455</td>\n", |
| 381 | + "<td>2003-05-20</td>\n", |
| 382 | + "<td>45864.03</td></tr><tr><td>114</td>\n", |
| 383 | + "<td>MA765515</td>\n", |
| 384 | + "<td>2004-12-15</td>\n", |
| 385 | + "<td>82261.22</td></tr><tr><td>114</td>\n", |
| 386 | + "<td>NP603840</td>\n", |
| 387 | + "<td>2003-05-31</td>\n", |
| 388 | + "<td>7565.08</td></tr><tr><td>114</td>\n", |
| 389 | + "<td>NR27552</td>\n", |
| 390 | + "<td>2004-03-10</td>\n", |
| 391 | + "<td>44894.74</td></tr><tr><td>119</td>\n", |
| 392 | + "<td>DB933704</td>\n", |
| 393 | + "<td>2004-11-14</td>\n", |
| 394 | + "<td>19501.82</td></tr><tr><td>119</td>\n", |
| 395 | + "<td>LN373447</td>\n", |
| 396 | + "<td>2004-08-08</td>\n", |
| 397 | + "<td>47924.19</td> </tr> </tbody>\n", |
| 398 | + " </table>\n", |
| 399 | + " <p>...</p>\n", |
| 400 | + " <p>Total: 273</p></div>\n", |
| 401 | + " " |
| 402 | + ], |
| 403 | + "text/plain": [ |
| 404 | + "*customerNumbe *checkNumber paymentDate amount \n", |
| 405 | + "+------------+ +------------+ +------------+ +----------+\n", |
| 406 | + "103 HQ336336 2004-10-19 6066.78 \n", |
| 407 | + "103 JM555205 2003-06-05 14571.44 \n", |
| 408 | + "103 OM314933 2004-12-18 1676.14 \n", |
| 409 | + "112 BO864823 2004-12-17 14191.12 \n", |
| 410 | + "112 HQ55022 2003-06-06 32641.98 \n", |
| 411 | + "112 ND748579 2004-08-20 33347.88 \n", |
| 412 | + "114 GG31455 2003-05-20 45864.03 \n", |
| 413 | + "114 MA765515 2004-12-15 82261.22 \n", |
| 414 | + "114 NP603840 2003-05-31 7565.08 \n", |
| 415 | + "114 NR27552 2004-03-10 44894.74 \n", |
| 416 | + "119 DB933704 2004-11-14 19501.82 \n", |
| 417 | + "119 LN373447 2004-08-08 47924.19 \n", |
| 418 | + " ...\n", |
| 419 | + " (Total: 273)" |
| 420 | + ] |
| 421 | + }, |
| 422 | + "execution_count": 5, |
| 423 | + "metadata": {}, |
| 424 | + "output_type": "execute_result" |
| 425 | + } |
| 426 | + ], |
| 427 | + "source": [ |
| 428 | + "Payment()" |
| 429 | + ] |
| 430 | + }, |
| 431 | + { |
| 432 | + "cell_type": "code", |
| 433 | + "execution_count": null, |
| 434 | + "metadata": {}, |
| 435 | + "outputs": [], |
| 436 | + "source": [] |
284 | 437 | } |
285 | 438 | ], |
286 | 439 | "metadata": { |
|
0 commit comments