Offset 1, 5 lines modified | Offset 1, 5 lines modified | ||
1 | · | 1 | ·3f67245a2ffb1f76d0a6e36142d10a7b·3720016·doc·optional·python-sqlalchemy-doc_1.4.50+ds1-1_all.deb |
2 | ·397dc71818c832a10795aefe2fa8bcbb·70296·debug·optional·python3-sqlalchemy-ext-dbgsym_1.4.50+ds1-1_amd64.deb | 2 | ·397dc71818c832a10795aefe2fa8bcbb·70296·debug·optional·python3-sqlalchemy-ext-dbgsym_1.4.50+ds1-1_amd64.deb |
3 | ·3b41bed8e1bb07c1668ba0caa003f1cc·20936·python·optional·python3-sqlalchemy-ext_1.4.50+ds1-1_amd64.deb | 3 | ·3b41bed8e1bb07c1668ba0caa003f1cc·20936·python·optional·python3-sqlalchemy-ext_1.4.50+ds1-1_amd64.deb |
4 | ·7b9b7746123a45060be2c12bd6e80ed4·1009400·python·optional·python3-sqlalchemy_1.4.50+ds1-1_all.deb | 4 | ·7b9b7746123a45060be2c12bd6e80ed4·1009400·python·optional·python3-sqlalchemy_1.4.50+ds1-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-01-05·13:47:47.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-01-05·13:47:47.000000·debian-binary |
2 | -rw-r--r--···0········0········0····13376·2024-01-05·13:47:47.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0····13376·2024-01-05·13:47:47.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··3706 | 3 | -rw-r--r--···0········0········0··3706448·2024-01-05·13:47:47.000000·data.tar.xz |
Offset 308, 46 lines modified | Offset 308, 46 lines modified | ||
308 | </section> | 308 | </section> |
309 | <section·id="module-examples.association"> | 309 | <section·id="module-examples.association"> |
310 | <span·id="associations"></span><span·id="examples-associations"></span><h3>Associations<a·class="headerlink"·href="#module-examples.association"·title="Link·to·this·heading">¶</a></h3> | 310 | <span·id="associations"></span><span·id="examples-associations"></span><h3>Associations<a·class="headerlink"·href="#module-examples.association"·title="Link·to·this·heading">¶</a></h3> |
311 | <p>Examples·illustrating·the·usage·of·the·“association·object”·pattern, | 311 | <p>Examples·illustrating·the·usage·of·the·“association·object”·pattern, |
312 | where·an·intermediary·class·mediates·the·relationship·between·two | 312 | where·an·intermediary·class·mediates·the·relationship·between·two |
313 | classes·that·are·associated·in·a·many-to-many·pattern.</p> | 313 | classes·that·are·associated·in·a·many-to-many·pattern.</p> |
314 | <p>Listing·of·files:<ul·class="simple"> | 314 | <p>Listing·of·files:<ul·class="simple"> |
315 | <li><p><p><a·class="reference·external"·href="../_modules/examples/association/basic_association.html">basic_association.py</a>·-·Illustrate·a·many-to-many·relationship·between·an | ||
316 | “Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price | ||
317 | with·each·via·an·association·object·called·“OrderItem”</p> | ||
318 | </p></li> | ||
319 | <li><p><p><a·class="reference·external"·href="../_modules/examples/association/dict_of_sets_with_default.html">dict_of_sets_with_default.py</a>·-·An·advanced·association·proxy·example·which | 315 | <li><p><p><a·class="reference·external"·href="../_modules/examples/association/dict_of_sets_with_default.html">dict_of_sets_with_default.py</a>·-·An·advanced·association·proxy·example·which |
320 | illustrates·nesting·of·association·proxies·to·produce·multi-level·Python | 316 | illustrates·nesting·of·association·proxies·to·produce·multi-level·Python |
321 | collections,·in·this·case·a·dictionary·with·string·keys·and·sets·of·integers | 317 | collections,·in·this·case·a·dictionary·with·string·keys·and·sets·of·integers |
322 | as·values,·which·conceal·the·underlying·mapped·classes.</p> | 318 | as·values,·which·conceal·the·underlying·mapped·classes.</p> |
323 | </p></li> | 319 | </p></li> |
324 | <li><p><p><a·class="reference·external"·href="../_modules/examples/association/proxied_association.html">proxied_association.py</a>·-·Same·example·as·basic_association,·adding·in | 320 | <li><p><p><a·class="reference·external"·href="../_modules/examples/association/proxied_association.html">proxied_association.py</a>·-·Same·example·as·basic_association,·adding·in |
325 | usage·of·<a·class="reference·internal"·href="extensions/associationproxy.html#module-sqlalchemy.ext.associationproxy"·title="sqlalchemy.ext.associationproxy"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">sqlalchemy.ext.associationproxy</span></code></a>·to·make·explicit·references | 321 | usage·of·<a·class="reference·internal"·href="extensions/associationproxy.html#module-sqlalchemy.ext.associationproxy"·title="sqlalchemy.ext.associationproxy"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">sqlalchemy.ext.associationproxy</span></code></a>·to·make·explicit·references |
326 | to·<code·class="docutils·literal·notranslate"><span·class="pre">OrderItem</span></code>·optional.</p> | 322 | to·<code·class="docutils·literal·notranslate"><span·class="pre">OrderItem</span></code>·optional.</p> |
327 | </p></li> | 323 | </p></li> |
324 | <li><p><p><a·class="reference·external"·href="../_modules/examples/association/basic_association.html">basic_association.py</a>·-·Illustrate·a·many-to-many·relationship·between·an | ||
325 | “Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price | ||
326 | with·each·via·an·association·object·called·“OrderItem”</p> | ||
327 | </p></li> | ||
328 | </ul> | 328 | </ul> |
329 | </p> | 329 | </p> |
330 | </section> | 330 | </section> |
331 | <section·id="module-examples.asyncio"> | 331 | <section·id="module-examples.asyncio"> |
332 | <span·id="asyncio-integration"></span><span·id="examples-asyncio"></span><h3>Asyncio·Integration<a·class="headerlink"·href="#module-examples.asyncio"·title="Link·to·this·heading">¶</a></h3> | 332 | <span·id="asyncio-integration"></span><span·id="examples-asyncio"></span><h3>Asyncio·Integration<a·class="headerlink"·href="#module-examples.asyncio"·title="Link·to·this·heading">¶</a></h3> |
333 | <p>Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy.</p> | 333 | <p>Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy.</p> |
334 | <p>Listing·of·files:<ul·class="simple"> | 334 | <p>Listing·of·files:<ul·class="simple"> |
335 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/async_orm.html">async_orm.py</a>·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession·object | ||
336 | for·asynchronous·ORM·use.</p> | ||
337 | </p></li> | ||
338 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/gather_orm_statements.html">gather_orm_statements.py</a>·-·Illustrates·how·to·run·many·statements·concurrently·using·<code·class="docutils·literal·notranslate"><span·class="pre">asyncio.gather()</span></code> | 335 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/gather_orm_statements.html">gather_orm_statements.py</a>·-·Illustrates·how·to·run·many·statements·concurrently·using·<code·class="docutils·literal·notranslate"><span·class="pre">asyncio.gather()</span></code> |
339 | along·many·asyncio·database·connections,·merging·ORM·results·into·a·single | 336 | along·many·asyncio·database·connections,·merging·ORM·results·into·a·single |
340 | <code·class="docutils·literal·notranslate"><span·class="pre">AsyncSession</span></code>.</p> | 337 | <code·class="docutils·literal·notranslate"><span·class="pre">AsyncSession</span></code>.</p> |
341 | </p></li> | 338 | </p></li> |
342 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/ | 339 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/async_orm.html">async_orm.py</a>·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession·object |
343 | for·asynchronous·ORM·use | 340 | for·asynchronous·ORM·use.</p> |
344 | </p></li> | 341 | </p></li> |
345 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/basic.html">basic.py</a>·-·Illustrates·the·asyncio·engine·/·connection·interface.</p> | 342 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/basic.html">basic.py</a>·-·Illustrates·the·asyncio·engine·/·connection·interface.</p> |
346 | </p></li> | 343 | </p></li> |
344 | <li><p><p><a·class="reference·external"·href="../_modules/examples/asyncio/greenlet_orm.html">greenlet_orm.py</a>·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession·object | ||
345 | for·asynchronous·ORM·use,·including·the·optional·run_sync()·method.</p> | ||
346 | </p></li> | ||
347 | </ul> | 347 | </ul> |
348 | </p> | 348 | </p> |
349 | </section> | 349 | </section> |
350 | <section·id="module-examples.graphs"> | 350 | <section·id="module-examples.graphs"> |
351 | <span·id="directed-graphs"></span><h3>Directed·Graphs<a·class="headerlink"·href="#module-examples.graphs"·title="Link·to·this·heading">¶</a></h3> | 351 | <span·id="directed-graphs"></span><h3>Directed·Graphs<a·class="headerlink"·href="#module-examples.graphs"·title="Link·to·this·heading">¶</a></h3> |
352 | <p>An·example·of·persistence·for·a·directed·graph·structure.···The | 352 | <p>An·example·of·persistence·for·a·directed·graph·structure.···The |
353 | graph·is·stored·as·a·collection·of·edges,·each·referencing·both·a | 353 | graph·is·stored·as·a·collection·of·edges,·each·referencing·both·a |
Offset 388, 32 lines modified | Offset 388, 32 lines modified | ||
388 | are·modernized·versions·of·recipes·presented·in·the·2007·blog·post | 388 | are·modernized·versions·of·recipes·presented·in·the·2007·blog·post |
389 | <a·class="reference·external"·href="https://techspot.zzzeek.org/2007/05/29/polymorphic-associations-with-sqlalchemy/">Polymorphic·Associations·with·SQLAlchemy</a>.</p> | 389 | <a·class="reference·external"·href="https://techspot.zzzeek.org/2007/05/29/polymorphic-associations-with-sqlalchemy/">Polymorphic·Associations·with·SQLAlchemy</a>.</p> |
390 | <p>Listing·of·files:<ul·class="simple"> | 390 | <p>Listing·of·files:<ul·class="simple"> |
391 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/table_per_related.html">table_per_related.py</a>·-·Illustrates·a·generic·association·which·persists·association | 391 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/table_per_related.html">table_per_related.py</a>·-·Illustrates·a·generic·association·which·persists·association |
392 | objects·within·individual·tables,·each·one·generated·to·persist | 392 | objects·within·individual·tables,·each·one·generated·to·persist |
393 | those·objects·on·behalf·of·a·particular·parent·class.</p> | 393 | those·objects·on·behalf·of·a·particular·parent·class.</p> |
394 | </p></li> | 394 | </p></li> |
395 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/table_per_association.html">table_per_association.py</a>·-·Illustrates·a·mixin·which·provides·a·generic·association | ||
396 | via·a·individually·generated·association·tables·for·each·parent·class. | ||
397 | The·associated·objects·themselves·are·persisted·in·a·single·table | ||
398 | s | 395 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/generic_fk.html">generic_fk.py</a>·-·Illustrates·a·so-called·“generic·foreign·key”,·in·a·similar·fashion |
396 | to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.··This | ||
397 | approach·bypasses·standard·referential·integrity | ||
398 | practices,·in·that·the·“foreign·key”·column·is·not·actually | ||
399 | constrained·to·refer·to·any·particular·table;·instead, | ||
400 | in-application·logic·is·used·to·determine·which·table·is·referenced.</p> | ||
399 | </p></li> | 401 | </p></li> |
400 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/discriminator_on_association.html">discriminator_on_association.py</a>·-·Illustrates·a·mixin·which·provides·a·generic·association | 402 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/discriminator_on_association.html">discriminator_on_association.py</a>·-·Illustrates·a·mixin·which·provides·a·generic·association |
401 | using·a·single·target·table·and·a·single·association·table, | 403 | using·a·single·target·table·and·a·single·association·table, |
402 | referred·to·by·all·parent·tables.··The·association·table | 404 | referred·to·by·all·parent·tables.··The·association·table |
403 | contains·a·“discriminator”·column·which·determines·what·type·of | 405 | contains·a·“discriminator”·column·which·determines·what·type·of |
404 | parent·object·associates·to·each·particular·row·in·the·association | 406 | parent·object·associates·to·each·particular·row·in·the·association |
405 | table.</p> | 407 | table.</p> |
406 | </p></li> | 408 | </p></li> |
409 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/table_per_association.html">table_per_association.py</a>·-·Illustrates·a·mixin·which·provides·a·generic·association | ||
410 | via·a·individually·generated·association·tables·for·each·parent·class. | ||
411 | The·associated·objects·themselves·are·persisted·in·a·single·table | ||
412 | shared·among·all·parents.</p> | ||
407 | <li><p><p><a·class="reference·external"·href="../_modules/examples/generic_associations/generic_fk.html">generic_fk.py</a>·-·Illustrates·a·so-called·“generic·foreign·key”,·in·a·similar·fashion | ||
408 | to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.··This | ||
409 | approach·bypasses·standard·referential·integrity | ||
410 | practices,·in·that·the·“foreign·key”·column·is·not·actually | ||
411 | constrained·to·refer·to·any·particular·table;·instead, | ||
412 | in-application·logic·is·used·to·determine·which·table·is·referenced.</p> | ||
413 | </p></li> | 413 | </p></li> |
414 | </ul> | 414 | </ul> |
415 | </p> | 415 | </p> |
416 | </section> | 416 | </section> |
417 | <section·id="module-examples.large_collection"> | 417 | <section·id="module-examples.large_collection"> |
418 | <span·id="large-collections"></span><h3>Large·Collections<a·class="headerlink"·href="#module-examples.large_collection"·title="Link·to·this·heading">¶</a></h3> | 418 | <span·id="large-collections"></span><h3>Large·Collections<a·class="headerlink"·href="#module-examples.large_collection"·title="Link·to·this·heading">¶</a></h3> |
419 | <p>Large·collection·example.</p> | 419 | <p>Large·collection·example.</p> |
Offset 503, 30 lines modified | Offset 503, 30 lines modified | ||
503 | </div> | 503 | </div> |
504 | <section·id="file-listing"> | 504 | <section·id="file-listing"> |
505 | <h4>File·Listing<a·class="headerlink"·href="#file-listing"·title="Link·to·this·heading">¶</a></h4> | 505 | <h4>File·Listing<a·class="headerlink"·href="#file-listing"·title="Link·to·this·heading">¶</a></h4> |
506 | <p>Listing·of·files:<ul·class="simple"> | 506 | <p>Listing·of·files:<ul·class="simple"> |
507 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/bulk_updates.html">bulk_updates.py</a>·-·This·series·of·tests·will·illustrate·different·ways·to·UPDATE·a·large·number | 507 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/bulk_updates.html">bulk_updates.py</a>·-·This·series·of·tests·will·illustrate·different·ways·to·UPDATE·a·large·number |
508 | of·rows·in·bulk·(under·construction!·there’s·just·one·test·at·the·moment)</p> | 508 | of·rows·in·bulk·(under·construction!·there’s·just·one·test·at·the·moment)</p> |
509 | </p></li> | 509 | </p></li> |
510 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/large_resultsets.html">large_resultsets.py</a>·-·In·this·series·of·tests,·we·are·looking·at·time·to·load·a·large·number | ||
511 | of·very·small·and·simple·rows.</p> | ||
512 | </p></li> | ||
513 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/single_inserts.html">single_inserts.py</a>·-·In·this·series·of·tests,·we’re·looking·at·a·method·that·inserts·a·row | 510 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/single_inserts.html">single_inserts.py</a>·-·In·this·series·of·tests,·we’re·looking·at·a·method·that·inserts·a·row |
514 | within·a·distinct·transaction,·and·afterwards·returns·to·essentially·a | 511 | within·a·distinct·transaction,·and·afterwards·returns·to·essentially·a |
515 | “closed”·state.···This·would·be·analogous·to·an·API·call·that·starts·up | 512 | “closed”·state.···This·would·be·analogous·to·an·API·call·that·starts·up |
516 | a·database·connection,·inserts·the·row,·commits·and·closes.</p> | 513 | a·database·connection,·inserts·the·row,·commits·and·closes.</p> |
517 | </p></li> | 514 | </p></li> |
515 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/bulk_inserts.html">bulk_inserts.py</a>·-·This·series·of·tests·illustrates·different·ways·to·INSERT·a·large·number | ||
516 | of·rows·in·bulk.</p> | ||
517 | </p></li> | ||
518 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/large_resultsets.html">large_resultsets.py</a>·-·In·this·series·of·tests,·we·are·looking·at·time·to·load·a·large·number | ||
519 | of·very·small·and·simple·rows.</p> | ||
520 | </p></li> | ||
518 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/__main__.html">__main__.py</a>·-·Allows·the·examples/performance·package·to·be·run·as·a·script.</p> | 521 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/__main__.html">__main__.py</a>·-·Allows·the·examples/performance·package·to·be·run·as·a·script.</p> |
519 | </p></li> | 522 | </p></li> |
520 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/short_selects.html">short_selects.py</a>·-·This·series·of·tests·illustrates·different·ways·to·SELECT·a·single | 523 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/short_selects.html">short_selects.py</a>·-·This·series·of·tests·illustrates·different·ways·to·SELECT·a·single |
521 | record·by·primary·key</p> | 524 | record·by·primary·key</p> |
522 | </p></li> | 525 | </p></li> |
523 | <li><p><p><a·class="reference·external"·href="../_modules/examples/performance/bulk_inserts.html">bulk_inserts.py</a>·-·This·series·of·tests·illustrates·different·ways·to·INSERT·a·large·number | ||
524 | of·rows·in·bulk.</p> | ||
525 | </p></li> | ||
526 | </ul> | 526 | </ul> |
527 | </p> | 527 | </p> |
Max diff block lines reached; 13429/23386 bytes (57.42%) of diff not shown. |
Offset 105, 35 lines modified | Offset 105, 35 lines modified | ||
105 | Listing·of·files: | 105 | Listing·of·files: |
106 | ····*·_\x8a_\x8d_\x8j_\x8a_\x8c_\x8e_\x8n_\x8c_\x8y_\x8__\x8l_\x8i_\x8s_\x8t_\x8._\x8p_\x8y | 106 | ····*·_\x8a_\x8d_\x8j_\x8a_\x8c_\x8e_\x8n_\x8c_\x8y_\x8__\x8l_\x8i_\x8s_\x8t_\x8._\x8p_\x8y |
107 | *\x8**\x8**\x8**\x8*·A\x8As\x8ss\x8so\x8oc\x8ci\x8ia\x8at\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 107 | *\x8**\x8**\x8**\x8*·A\x8As\x8ss\x8so\x8oc\x8ci\x8ia\x8at\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
108 | Examples·illustrating·the·usage·of·the·“association·object”·pattern,·where·an | 108 | Examples·illustrating·the·usage·of·the·“association·object”·pattern,·where·an |
109 | intermediary·class·mediates·the·relationship·between·two·classes·that·are | 109 | intermediary·class·mediates·the·relationship·between·two·classes·that·are |
110 | associated·in·a·many-to-many·pattern. | 110 | associated·in·a·many-to-many·pattern. |
111 | Listing·of·files: | 111 | Listing·of·files: |
112 | ····*·_\x8b_\x8a_\x8s_\x8i_\x8c_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Illustrate·a·many-to-many·relationship·between·an | ||
113 | ······“Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price | ||
114 | ······with·each·via·an·association·object·called·“OrderItem” | ||
115 | _.d_.i_.c_.t_.__.o_.f_.__.s_.e_.t_.s_.__.w_.i_.t_.h_.__.d_.e_.f_.a_.u_.l_.t_.._.p_.y·-·An·advanced·association·proxy·example | 112 | ····*·_.d_.i_.c_.t_.__.o_.f_.__.s_.e_.t_.s_.__.w_.i_.t_.h_.__.d_.e_.f_.a_.u_.l_.t_.._.p_.y·-·An·advanced·association·proxy·example |
116 | illustrates·nesting·of·association·proxies·to·produce·multi-level | 113 | ······which·illustrates·nesting·of·association·proxies·to·produce·multi-level |
117 | collections,·in·this·case·a·dictionary·with·string·keys·and·se | 114 | ······Python·collections,·in·this·case·a·dictionary·with·string·keys·and·sets |
118 | values,·which·conceal·the·underlying·mapped·classes. | 115 | ······of·integers·as·values,·which·conceal·the·underlying·mapped·classes. |
119 | _\x8p_\x8r_\x8o_\x8x_\x8i_\x8e_\x8d_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Same·example·as·basic_association,·adding·in·usage·of | 116 | _\x8p_\x8r_\x8o_\x8x_\x8i_\x8e_\x8d_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Same·example·as·basic_association,·adding·in·usage·of |
120 | _\x8s_\x8q_\x8l_\x8a_\x8l_\x8c_\x8h_\x8e_\x8m_\x8y_\x8._\x8e_\x8x_\x8t_\x8._\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8p_\x8r_\x8o_\x8x_\x8y·to·make·explicit·references·to·OrderItem | 117 | _\x8s_\x8q_\x8l_\x8a_\x8l_\x8c_\x8h_\x8e_\x8m_\x8y_\x8._\x8e_\x8x_\x8t_\x8._\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8p_\x8r_\x8o_\x8x_\x8y·to·make·explicit·references·to·OrderItem |
121 | optional. | 118 | optional. |
119 | _\x8b_\x8a_\x8s_\x8i_\x8c_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Illustrate·a·many-to-many·relationship·between·an | ||
120 | “Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price·with | ||
121 | each·via·an·association·object·called·“OrderItem” | ||
122 | *\x8**\x8**\x8**\x8*·A\x8As\x8sy\x8yn\x8nc\x8ci\x8io\x8o·I\x8In\x8nt\x8te\x8eg\x8gr\x8ra\x8at\x8ti\x8io\x8on\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8*·A\x8As\x8sy\x8yn\x8nc\x8ci\x8io\x8o·I\x8In\x8nt\x8te\x8eg\x8gr\x8ra\x8at\x8ti\x8io\x8on\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
123 | Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy. | 123 | Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy. |
124 | Listing·of·files: | 124 | Listing·of·files: |
125 | ····*·_\x8g_\x8a_\x8t_\x8h_\x8e_\x8r_\x8__\x8o_\x8r_\x8m_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8m_\x8e_\x8n_\x8t_\x8s_\x8._\x8p_\x8y·-·Illustrates·how·to·run·many·statements | ||
126 | ······concurrently·using·asyncio.gather()·along·many·asyncio·database | ||
127 | ······connections,·merging·ORM·results·into·a·single·AsyncSession. | ||
125 | 128 | _\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8o_\x8r_\x8m_\x8._\x8p_\x8y·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession | |
126 | 129 | object·for·asynchronous·ORM·use. | |
130 | _\x8b_\x8a_\x8s_\x8i_\x8c_\x8._\x8p_\x8y·-·Illustrates·the·asyncio·engine·/·connection·interface. | ||
127 | _\x8g_\x8a_\x8t_\x8h_\x8e_\x8r_\x8__\x8o_\x8r_\x8m_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8m_\x8e_\x8n_\x8t_\x8s_\x8._\x8p_\x8y·-·Illustrates·how·to·run·many·statements·concurrently | ||
128 | using·asyncio.gather()·along·many·asyncio·database·connections,·merging·ORM | ||
129 | results·into·a·single·AsyncSession. | ||
130 | _\x8g_\x8r_\x8e_\x8e_\x8n_\x8l_\x8e_\x8t_\x8__\x8o_\x8r_\x8m_\x8._\x8p_\x8y·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession | 131 | _\x8g_\x8r_\x8e_\x8e_\x8n_\x8l_\x8e_\x8t_\x8__\x8o_\x8r_\x8m_\x8._\x8p_\x8y·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession |
131 | object·for·asynchronous·ORM·use,·including·the·optional·run_sync()·method. | 132 | object·for·asynchronous·ORM·use,·including·the·optional·run_sync()·method. |
132 | _\x8b_\x8a_\x8s_\x8i_\x8c_\x8._\x8p_\x8y·-·Illustrates·the·asyncio·engine·/·connection·interface. | ||
133 | *\x8**\x8**\x8**\x8*·D\x8Di\x8ir\x8re\x8ec\x8ct\x8te\x8ed\x8d·G\x8Gr\x8ra\x8ap\x8ph\x8hs\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 133 | *\x8**\x8**\x8**\x8*·D\x8Di\x8ir\x8re\x8ec\x8ct\x8te\x8ed\x8d·G\x8Gr\x8ra\x8ap\x8ph\x8hs\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
134 | An·example·of·persistence·for·a·directed·graph·structure.·The·graph·is·stored | 134 | An·example·of·persistence·for·a·directed·graph·structure.·The·graph·is·stored |
135 | as·a·collection·of·edges,·each·referencing·both·a·“lower”·and·an·“upper”·node | 135 | as·a·collection·of·edges,·each·referencing·both·a·“lower”·and·an·“upper”·node |
136 | in·a·table·of·nodes.·Basic·persistence·and·querying·for·lower-·and·upper- | 136 | in·a·table·of·nodes.·Basic·persistence·and·querying·for·lower-·and·upper- |
137 | neighbors·are·illustrated: | 137 | neighbors·are·illustrated: |
138 | n2·=·Node(2) | 138 | n2·=·Node(2) |
139 | n5·=·Node(5) | 139 | n5·=·Node(5) |
Offset 158, 28 lines modified | Offset 158, 28 lines modified | ||
158 | The·_\x8d_\x8i_\x8s_\x8c_\x8r_\x8i_\x8m_\x8i_\x8n_\x8a_\x8t_\x8o_\x8r_\x8__\x8o_\x8n_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·and·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8i_\x8c_\x8__\x8f_\x8k_\x8._\x8p_\x8y·scripts·are·modernized | 158 | The·_\x8d_\x8i_\x8s_\x8c_\x8r_\x8i_\x8m_\x8i_\x8n_\x8a_\x8t_\x8o_\x8r_\x8__\x8o_\x8n_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·and·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8i_\x8c_\x8__\x8f_\x8k_\x8._\x8p_\x8y·scripts·are·modernized |
159 | versions·of·recipes·presented·in·the·2007·blog·post·_\x8P_\x8o_\x8l_\x8y_\x8m_\x8o_\x8r_\x8p_\x8h_\x8i_\x8c_\x8·_\x8A_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s | 159 | versions·of·recipes·presented·in·the·2007·blog·post·_\x8P_\x8o_\x8l_\x8y_\x8m_\x8o_\x8r_\x8p_\x8h_\x8i_\x8c_\x8·_\x8A_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s |
160 | _\x8w_\x8i_\x8t_\x8h_\x8·_\x8S_\x8Q_\x8L_\x8A_\x8l_\x8c_\x8h_\x8e_\x8m_\x8y. | 160 | _\x8w_\x8i_\x8t_\x8h_\x8·_\x8S_\x8Q_\x8L_\x8A_\x8l_\x8c_\x8h_\x8e_\x8m_\x8y. |
161 | Listing·of·files: | 161 | Listing·of·files: |
162 | ····*·_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8p_\x8e_\x8r_\x8__\x8r_\x8e_\x8l_\x8a_\x8t_\x8e_\x8d_\x8._\x8p_\x8y·-·Illustrates·a·generic·association·which·persists | 162 | ····*·_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8p_\x8e_\x8r_\x8__\x8r_\x8e_\x8l_\x8a_\x8t_\x8e_\x8d_\x8._\x8p_\x8y·-·Illustrates·a·generic·association·which·persists |
163 | ······association·objects·within·individual·tables,·each·one·generated·to | 163 | ······association·objects·within·individual·tables,·each·one·generated·to |
164 | ······persist·those·objects·on·behalf·of·a·particular·parent·class. | 164 | ······persist·those·objects·on·behalf·of·a·particular·parent·class. |
165 | _\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8p_\x8e_\x8r_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Illustrates·a·mixin·which·provides·a·generic | ||
166 | association·via·a·individually·generated·association·tables·for·each·parent | ||
167 | class.·The·associated·objects·themselves·are·persisted·in·a·single·table·shared | ||
168 | among·all·parents. | ||
169 | _\x8d_\x8i_\x8s_\x8c_\x8r_\x8i_\x8m_\x8i_\x8n_\x8a_\x8t_\x8o_\x8r_\x8__\x8o_\x8n_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Illustrates·a·mixin·which·provides·a·generic | ||
170 | association·using·a·single·target·table·and·a·single·association·table, | ||
171 | referred·to·by·all·parent·tables.·The·association·table·contains·a | ||
172 | “discriminator”·column·which·determines·what·type·of·parent·object·associates | ||
173 | to·each·particular·row·in·the·association·table. | ||
174 | _\x8g_\x8e_\x8n_\x8e_\x8r_\x8i_\x8c_\x8__\x8f_\x8k_\x8._\x8p_\x8y·-·Illustrates·a·so-called·“generic·foreign·key”,·in·a·similar | 165 | _\x8g_\x8e_\x8n_\x8e_\x8r_\x8i_\x8c_\x8__\x8f_\x8k_\x8._\x8p_\x8y·-·Illustrates·a·so-called·“generic·foreign·key”,·in·a·similar |
175 | fashion·to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.·This·approach | 166 | fashion·to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.·This·approach |
176 | bypasses·standard·referential·integrity·practices,·in·that·the·“foreign·key” | 167 | bypasses·standard·referential·integrity·practices,·in·that·the·“foreign·key” |
177 | column·is·not·actually·constrained·to·refer·to·any·particular·table;·instead, | 168 | column·is·not·actually·constrained·to·refer·to·any·particular·table;·instead, |
178 | in-application·logic·is·used·to·determine·which·table·is·referenced. | 169 | in-application·logic·is·used·to·determine·which·table·is·referenced. |
170 | _\x8d_\x8i_\x8s_\x8c_\x8r_\x8i_\x8m_\x8i_\x8n_\x8a_\x8t_\x8o_\x8r_\x8__\x8o_\x8n_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Illustrates·a·mixin·which·provides·a·generic | ||
171 | association·using·a·single·target·table·and·a·single·association·table, | ||
172 | referred·to·by·all·parent·tables.·The·association·table·contains·a | ||
173 | “discriminator”·column·which·determines·what·type·of·parent·object·associates | ||
174 | to·each·particular·row·in·the·association·table. | ||
175 | _\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8p_\x8e_\x8r_\x8__\x8a_\x8s_\x8s_\x8o_\x8c_\x8i_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y·-·Illustrates·a·mixin·which·provides·a·generic | ||
176 | association·via·a·individually·generated·association·tables·for·each·parent | ||
177 | class.·The·associated·objects·themselves·are·persisted·in·a·single·table·shared | ||
178 | among·all·parents. | ||
179 | *\x8**\x8**\x8**\x8*·L\x8La\x8ar\x8rg\x8ge\x8e·C\x8Co\x8ol\x8ll\x8le\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 179 | *\x8**\x8**\x8**\x8*·L\x8La\x8ar\x8rg\x8ge\x8e·C\x8Co\x8ol\x8ll\x8le\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
180 | Large·collection·example. | 180 | Large·collection·example. |
181 | Illustrates·the·options·to·use·with·_\x8r_\x8e_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s_\x8h_\x8i_\x8p_\x8(_\x8)·when·the·list·of·related | 181 | Illustrates·the·options·to·use·with·_\x8r_\x8e_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s_\x8h_\x8i_\x8p_\x8(_\x8)·when·the·list·of·related |
182 | objects·is·very·large,·including: | 182 | objects·is·very·large,·including: |
183 | ····*·“dynamic”·relationships·which·query·slices·of·data·as·accessed | 183 | ····*·“dynamic”·relationships·which·query·slices·of·data·as·accessed |
184 | ····*·how·to·use·ON·DELETE·CASCADE·in·conjunction·with·passive_deletes=True·to | 184 | ····*·how·to·use·ON·DELETE·CASCADE·in·conjunction·with·passive_deletes=True·to |
185 | ······greatly·improve·the·performance·of·related·collection·deletion. | 185 | ······greatly·improve·the·performance·of·related·collection·deletion. |
Offset 239, 25 lines modified | Offset 239, 25 lines modified | ||
239 | See·also | 239 | See·also |
240 | _\x8H_\x8o_\x8w_\x8·_\x8c_\x8a_\x8n_\x8·_\x8I_\x8·_\x8p_\x8r_\x8o_\x8f_\x8i_\x8l_\x8e_\x8·_\x8a_\x8·_\x8S_\x8Q_\x8L_\x8A_\x8l_\x8c_\x8h_\x8e_\x8m_\x8y_\x8·_\x8p_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8a_\x8p_\x8p_\x8l_\x8i_\x8c_\x8a_\x8t_\x8i_\x8o_\x8n_\x8? | 240 | _\x8H_\x8o_\x8w_\x8·_\x8c_\x8a_\x8n_\x8·_\x8I_\x8·_\x8p_\x8r_\x8o_\x8f_\x8i_\x8l_\x8e_\x8·_\x8a_\x8·_\x8S_\x8Q_\x8L_\x8A_\x8l_\x8c_\x8h_\x8e_\x8m_\x8y_\x8·_\x8p_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8a_\x8p_\x8p_\x8l_\x8i_\x8c_\x8a_\x8t_\x8i_\x8o_\x8n_\x8? |
241 | *\x8**\x8**\x8*·F\x8Fi\x8il\x8le\x8e·L\x8Li\x8is\x8st\x8ti\x8in\x8ng\x8g_\x8?\x8¶·*\x8**\x8**\x8* | 241 | *\x8**\x8**\x8*·F\x8Fi\x8il\x8le\x8e·L\x8Li\x8is\x8st\x8ti\x8in\x8ng\x8g_\x8?\x8¶·*\x8**\x8**\x8* |
242 | Listing·of·files: | 242 | Listing·of·files: |
243 | ····*·_\x8b_\x8u_\x8l_\x8k_\x8__\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8s_\x8._\x8p_\x8y·-·This·series·of·tests·will·illustrate·different·ways·to | 243 | ····*·_\x8b_\x8u_\x8l_\x8k_\x8__\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8s_\x8._\x8p_\x8y·-·This·series·of·tests·will·illustrate·different·ways·to |
244 | ······UPDATE·a·large·number·of·rows·in·bulk·(under·construction!·there’s·just | 244 | ······UPDATE·a·large·number·of·rows·in·bulk·(under·construction!·there’s·just |
245 | ······one·test·at·the·moment) | 245 | ······one·test·at·the·moment) |
246 | _\x8l_\x8a_\x8r_\x8g_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8l_\x8t_\x8s_\x8e_\x8t_\x8s_\x8._\x8p_\x8y·-·In·this·series·of·tests,·we·are·looking·at·time·to·load·a | ||
247 | large·number·of·very·small·and·simple·rows. | ||
248 | _\x8s_\x8i_\x8n_\x8g_\x8l_\x8e_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8s_\x8._\x8p_\x8y·-·In·this·series·of·tests,·we’re·looking·at·a·method·that | 246 | _\x8s_\x8i_\x8n_\x8g_\x8l_\x8e_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8s_\x8._\x8p_\x8y·-·In·this·series·of·tests,·we’re·looking·at·a·method·that |
249 | inserts·a·row·within·a·distinct·transaction,·and·afterwards·returns·to | 247 | inserts·a·row·within·a·distinct·transaction,·and·afterwards·returns·to |
250 | essentially·a·“closed”·state.·This·would·be·analogous·to·an·API·call·that | 248 | essentially·a·“closed”·state.·This·would·be·analogous·to·an·API·call·that |
251 | starts·up·a·database·connection,·inserts·the·row,·commits·and·closes. | 249 | starts·up·a·database·connection,·inserts·the·row,·commits·and·closes. |
250 | _\x8b_\x8u_\x8l_\x8k_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8s_\x8._\x8p_\x8y·-·This·series·of·tests·illustrates·different·ways·to·INSERT·a | ||
251 | large·number·of·rows·in·bulk. | ||
252 | _\x8l_\x8a_\x8r_\x8g_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8l_\x8t_\x8s_\x8e_\x8t_\x8s_\x8._\x8p_\x8y·-·In·this·series·of·tests,·we·are·looking·at·time·to·load·a | ||
253 | large·number·of·very·small·and·simple·rows. | ||
252 | _\x8__\x8__\x8m_\x8a_\x8i_\x8n_\x8__\x8__\x8._\x8p_\x8y·-·Allows·the·examples/performance·package·to·be·run·as·a·script. | 254 | _\x8__\x8__\x8m_\x8a_\x8i_\x8n_\x8__\x8__\x8._\x8p_\x8y·-·Allows·the·examples/performance·package·to·be·run·as·a·script. |
253 | _\x8s_\x8h_\x8o_\x8r_\x8t_\x8__\x8s_\x8e_\x8l_\x8e_\x8c_\x8t_\x8s_\x8._\x8p_\x8y·-·This·series·of·tests·illustrates·different·ways·to·SELECT·a | 255 | _\x8s_\x8h_\x8o_\x8r_\x8t_\x8__\x8s_\x8e_\x8l_\x8e_\x8c_\x8t_\x8s_\x8._\x8p_\x8y·-·This·series·of·tests·illustrates·different·ways·to·SELECT·a |
254 | single·record·by·primary·key | 256 | single·record·by·primary·key |
255 | _\x8b_\x8u_\x8l_\x8k_\x8__\x8i_\x8n_\x8s_\x8e_\x8r_\x8t_\x8s_\x8._\x8p_\x8y·-·This·series·of·tests·illustrates·different·ways·to·INSERT·a | ||
256 | large·number·of·rows·in·bulk. | ||
257 | *\x8**\x8**\x8*·R\x8Ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·a\x8al\x8ll\x8l·t\x8te\x8es\x8st\x8ts\x8s·w\x8wi\x8it\x8th\x8h·t\x8ti\x8im\x8me\x8e_\x8?\x8¶·*\x8**\x8**\x8* | 257 | *\x8**\x8**\x8*·R\x8Ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·a\x8al\x8ll\x8l·t\x8te\x8es\x8st\x8ts\x8s·w\x8wi\x8it\x8th\x8h·t\x8ti\x8im\x8me\x8e_\x8?\x8¶·*\x8**\x8**\x8* |
258 | This·is·the·default·form·of·run: | 258 | This·is·the·default·form·of·run: |
259 | $·python·-m·examples.performance·single_inserts | 259 | $·python·-m·examples.performance·single_inserts |
260 | Tests·to·run:·test_orm_commit,·test_bulk_save, | 260 | Tests·to·run:·test_orm_commit,·test_bulk_save, |
261 | ··············test_bulk_insert_dictionaries,·test_core, | 261 | ··············test_bulk_insert_dictionaries,·test_core, |
262 | ··············test_core_query_caching,·test_dbapi_raw_w_connect, | 262 | ··············test_core_query_caching,·test_dbapi_raw_w_connect, |
263 | ··············test_dbapi_raw_w_pool | 263 | ··············test_dbapi_raw_w_pool |
Offset 394, 20 lines modified | Offset 394, 20 lines modified | ||
394 | total·time·2.754592·sec | 394 | total·time·2.754592·sec |
395 | test_subqueryload·:·load·everything,·subquery·eager·loading.·(1000·iterations); | 395 | test_subqueryload·:·load·everything,·subquery·eager·loading.·(1000·iterations); |
396 | total·time·2.977696·sec | 396 | total·time·2.977696·sec |
397 | *\x8**\x8**\x8**\x8*·R\x8Re\x8el\x8la\x8at\x8ti\x8io\x8on\x8ns\x8sh\x8hi\x8ip\x8p·J\x8Jo\x8oi\x8in\x8n·C\x8Co\x8on\x8nd\x8di\x8it\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* | 397 | *\x8**\x8**\x8**\x8*·R\x8Re\x8el\x8la\x8at\x8ti\x8io\x8on\x8ns\x8sh\x8hi\x8ip\x8p·J\x8Jo\x8oi\x8in\x8n·C\x8Co\x8on\x8nd\x8di\x8it\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8* |
398 | Examples·of·various·_\x8r_\x8e_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s_\x8h_\x8i_\x8p_\x8(_\x8)·configurations,·which·make·use·of·the | 398 | Examples·of·various·_\x8r_\x8e_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s_\x8h_\x8i_\x8p_\x8(_\x8)·configurations,·which·make·use·of·the |
399 | primaryjoin·argument·to·compose·special·types·of·join·conditions. | 399 | primaryjoin·argument·to·compose·special·types·of·join·conditions. |
400 | Listing·of·files: | 400 | Listing·of·files: |
401 | ····*·_\x8t_\x8h_\x8r_\x8e_\x8e_\x8w_\x8a_\x8y_\x8._\x8p_\x8y·-·Illustrate·a·“three·way·join”·-·where·a·primary·table·joins | ||
402 | ······to·a·remote·table·via·an·association·table,·but·then·the·primary·table | ||
403 | ······also·needs·to·refer·to·some·columns·in·the·remote·table·directly. | ||
401 | 404 | _\x8c_\x8a_\x8s_\x8t_\x8._\x8p_\x8y·-·Illustrate·a·_\x8r_\x8e_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8s_\x8h_\x8i_\x8p_\x8(_\x8)·that·joins·two·columns·where·those | |
402 | 405 | columns·are·not·of·the·same·type,·and·a·CAST·must·be·used·on·the·SQL·side·in | |
403 | 406 | order·to·match·them. | |
404 | _\x8t_\x8h_\x8r_\x8e_\x8e_\x8w_\x8a_\x8y_\x8._\x8p_\x8y·-·Illustrate·a·“three·way·join”·-·where·a·primary·table·joins·to·a | ||
405 | remote·table·via·an·association·table,·but·then·the·primary·table·also·needs·to | ||
406 | refer·to·some·columns·in·the·remote·table·directly. | ||
Max diff block lines reached; 8069/18069 bytes (44.66%) of diff not shown. |
Offset 12459, 29 lines modified | Offset 12459, 29 lines modified | ||
12459 | ········"receive_class_uninstru":·97, | 12459 | ········"receive_class_uninstru":·97, |
12460 | ········"rootnod":·98, | 12460 | ········"rootnod":·98, |
12461 | ········"node1":·98, | 12461 | ········"node1":·98, |
12462 | ········"node3":·98, | 12462 | ········"node3":·98, |
12463 | ········"dump_tre":·98, | 12463 | ········"dump_tre":·98, |
12464 | ········"adjacency_list":·98, | 12464 | ········"adjacency_list":·98, |
12465 | ········"basic_associ":·98, | 12465 | ········"basic_associ":·98, |
12466 | ········"purchas":·98, | ||
12467 | ········"orderitem":·98, | 12466 | ········"orderitem":·98, |
12468 | ········" | 12467 | ········"purchas":·98, |
12469 | ········"gather_orm_stat":·98, | 12468 | ········"gather_orm_stat":·98, |
12469 | ········"async_orm":·98, | ||
12470 | ········"neighbor":·98, | 12470 | ········"neighbor":·98, |
12471 | ········"n5":·98, | 12471 | ········"n5":·98, |
12472 | ········"add_neighbor":·98, | 12472 | ········"add_neighbor":·98, |
12473 | ········"higher_neighbor":·98, | 12473 | ········"higher_neighbor":·98, |
12474 | ········"directed_graph":·98, | 12474 | ········"directed_graph":·98, |
12475 | ········"supplier":·98, | 12475 | ········"supplier":·98, |
12476 | ········"hasaddress":·98, | 12476 | ········"hasaddress":·98, |
12477 | ········"generic_fk":·98, | 12477 | ········"generic_fk":·98, |
12478 | ········"table_per_rel":·98, | 12478 | ········"table_per_rel":·98, |
12479 | ········"table_per_associ":·98, | ||
12480 | ········"ror":·98, | 12479 | ········"ror":·98, |
12480 | ········"table_per_associ":·98, | ||
12481 | ········"materialized_path":·98, | 12481 | ········"materialized_path":·98, |
12482 | ········"nested_set":·98, | 12482 | ········"nested_set":·98, |
12483 | ········"single_insert":·98, | 12483 | ········"single_insert":·98, |
12484 | ········"bulk_upd":·98, | 12484 | ········"bulk_upd":·98, |
12485 | ········"test_orm_commit":·98, | 12485 | ········"test_orm_commit":·98, |
12486 | ········"test_bulk_insert_dictionari":·98, | 12486 | ········"test_bulk_insert_dictionari":·98, |
12487 | ········"test_cor":·98, | 12487 | ········"test_cor":·98, |
Offset 12537, 31 lines modified | Offset 12537, 31 lines modified | ||
12537 | ········"sc1modifi":·98, | 12537 | ········"sc1modifi":·98, |
12538 | ········"someclasshistori":·98, | 12538 | ········"someclasshistori":·98, |
12539 | ········"__history_mapper__":·98, | 12539 | ········"__history_mapper__":·98, |
12540 | ········"_history_mapp":·98, | 12540 | ········"_history_mapp":·98, |
12541 | ········"somehistoryclass":·98, | 12541 | ········"somehistoryclass":·98, |
12542 | ········"use_mapper_vers":·98, | 12542 | ········"use_mapper_vers":·98, |
12543 | ········"versioned_map":·98, | 12543 | ········"versioned_map":·98, |
12544 | ········"versioned_update_old_row":·98, | ||
12545 | ········"versioned_rows_w_versionid":·98, | 12544 | ········"versioned_rows_w_versionid":·98, |
12545 | ········"versioned_update_old_row":·98, | ||
12546 | ········"breviti":·98, | 12546 | ········"breviti":·98, |
12547 | ········"shrew":·98, | 12547 | ········"shrew":·98, |
12548 | ········"anim":·98, | 12548 | ········"anim":·98, |
12549 | ········"cute":·98, | 12549 | ········"cute":·98, |
12550 | ········"weasel":·98, | 12550 | ········"weasel":·98, |
12551 | ········"poison":·98, | 12551 | ········"poison":·98, |
12552 | ········"animalfact":·98, | 12552 | ········"animalfact":·98, |
12553 | ········"custom_manag":·98, | 12553 | ········"custom_manag":·98, |
12554 | ········"weather":·98, | 12554 | ········"weather":·98, |
12555 | ········"contin":·98, | 12555 | ········"contin":·98, |
12556 | ········"spoken":·98, | 12556 | ········"spoken":·98, |
12557 | ········"separate_ | 12557 | ········"separate_t":·98, |
12558 | ········"separate_schema_transl":·98, | 12558 | ········"separate_schema_transl":·98, |
12559 | ········"schema_translates_map":·98, | 12559 | ········"schema_translates_map":·98, |
12560 | ········"separate_t":·98, | 12560 | ········"separate_databas":·98, |
12561 | ········"temporal_rang":·98, | 12561 | ········"temporal_rang":·98, |
12562 | ········"filter_publ":·98, | 12562 | ········"filter_publ":·98, |
12563 | ········"demo":·98, | 12563 | ········"demo":·98, |
12564 | ········"datafil":·98, | 12564 | ········"datafil":·98, |
12565 | ········"helloworld":·98, | 12565 | ········"helloworld":·98, |
12566 | ········"local_session_cach":·98, | 12566 | ········"local_session_cach":·98, |
12567 | ········"datamodel":·98, | 12567 | ········"datamodel":·98, |
Offset 1, 14 lines modified | Offset 1, 14 lines modified | ||
1 | ··Streams:···········1 | 1 | ··Streams:···········1 |
2 | ··Blocks:············2 | 2 | ··Blocks:············2 |
3 | ··Compressed·size:···3619.6·KiB·(3706 | 3 | ··Compressed·size:···3619.6·KiB·(3706448·B) |
4 | ··Uncompressed·size:·36.3·MiB·(38051840·B) | 4 | ··Uncompressed·size:·36.3·MiB·(38051840·B) |
5 | ··Ratio:·············0.097 | 5 | ··Ratio:·············0.097 |
6 | ··Check:·············CRC64 | 6 | ··Check:·············CRC64 |
7 | ··Stream·Padding:····0·B | 7 | ··Stream·Padding:····0·B |
8 | ··Streams: | 8 | ··Streams: |
9 | ····Stream····Blocks······CompOffset····UncompOffset········CompSize······UncompSize··Ratio··Check······Padding | 9 | ····Stream····Blocks······CompOffset····UncompOffset········CompSize······UncompSize··Ratio··Check······Padding |
10 | ·········1·········2···············0···············0·········3706 | 10 | ·········1·········2···············0···············0·········3706448········38051840··0.097··CRC64············0 |
11 | ··Blocks: | 11 | ··Blocks: |
12 | ····Stream·····Block······CompOffset····UncompOffset·······TotalSize······UncompSize··Ratio··Check | 12 | ····Stream·····Block······CompOffset····UncompOffset·······TotalSize······UncompSize··Ratio··Check |
13 | ·········1·········1··············12···············0·········20765 | 13 | ·········1·········1··············12···············0·········2076516········25165824··0.083··CRC64 |
14 | ·········1·········2·········20765 | 14 | ·········1·········2·········2076528········25165824·········1629888········12886016··0.126··CRC64 |