42.1 KB
/srv/reproducible-results/rbuild-debian/r-b-build.V27u8f9l/b1/sqlalchemy_1.4.46+ds1-1_i386.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.V27u8f9l/b2/sqlalchemy_1.4.46+ds1-1_i386.changes
535 B
Files
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
  
1 ·6510aed616b2579bdf1ff11eef830947·3567040·doc·optional·python-sqlalchemy-doc_1.4.46+ds1-1_all.deb1 ·74262092a9d928e4570414080bc5d3cd·3566724·doc·optional·python-sqlalchemy-doc_1.4.46+ds1-1_all.deb
2 ·cc7fdbb308bf20d905d218121ed63cb2·34360·debug·optional·python3-sqlalchemy-ext-dbgsym_1.4.46+ds1-1_i386.deb2 ·cc7fdbb308bf20d905d218121ed63cb2·34360·debug·optional·python3-sqlalchemy-ext-dbgsym_1.4.46+ds1-1_i386.deb
3 ·30b34629159a93cdaf32c8701ffd3a17·17180·python·optional·python3-sqlalchemy-ext_1.4.46+ds1-1_i386.deb3 ·30b34629159a93cdaf32c8701ffd3a17·17180·python·optional·python3-sqlalchemy-ext_1.4.46+ds1-1_i386.deb
4 ·96e279ec2f1354d84035113d9bc40d65·1007608·python·optional·python3-sqlalchemy_1.4.46+ds1-1_all.deb4 ·96e279ec2f1354d84035113d9bc40d65·1007608·python·optional·python3-sqlalchemy_1.4.46+ds1-1_all.deb
41.4 KB
python-sqlalchemy-doc_1.4.46+ds1-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2023-01-09·15:19:05.000000·debian-binary1 -rw-r--r--···0········0········0········4·2023-01-09·15:19:05.000000·debian-binary
2 -rw-r--r--···0········0········0····13268·2023-01-09·15:19:05.000000·control.tar.xz2 -rw-r--r--···0········0········0····13276·2023-01-09·15:19:05.000000·control.tar.xz
3 -rw-r--r--···0········0········0··3553580·2023-01-09·15:19:05.000000·data.tar.xz3 -rw-r--r--···0········0········0··3553256·2023-01-09·15:19:05.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
40.8 KB
data.tar.xz
40.8 KB
data.tar
38.9 KB
./usr/share/doc/python-sqlalchemy-doc/html/orm/examples.html
Ordering differences only
    
Offset 309, 40 lines modifiedOffset 309, 40 lines modified
309 </section>309 </section>
310 <section·id="module-examples.association">310 <section·id="module-examples.association">
311 <span·id="associations"></span><span·id="examples-associations"></span><h3>Associations<a·class="headerlink"·href="#module-examples.association"·title="Permalink·to·this·heading">¶</a></h3>311 <span·id="associations"></span><span·id="examples-associations"></span><h3>Associations<a·class="headerlink"·href="#module-examples.association"·title="Permalink·to·this·heading">¶</a></h3>
312 <p>Examples·illustrating·the·usage·of·the·“association·object”·pattern,312 <p>Examples·illustrating·the·usage·of·the·“association·object”·pattern,
313 where·an·intermediary·class·mediates·the·relationship·between·two313 where·an·intermediary·class·mediates·the·relationship·between·two
314 classes·that·are·associated·in·a·many-to-many·pattern.</p>314 classes·that·are·associated·in·a·many-to-many·pattern.</p>
315 <p>Listing·of·files:<ul·class="simple">315 <p>Listing·of·files:<ul·class="simple">
316 <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 
317 “Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price 
318 with·each·via·an·association·object·called·“OrderItem”</p> 
319 </p></li> 
320 <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·which316 <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
321 illustrates·nesting·of·association·proxies·to·produce·multi-level·Python317 illustrates·nesting·of·association·proxies·to·produce·multi-level·Python
322 collections,·in·this·case·a·dictionary·with·string·keys·and·sets·of·integers318 collections,·in·this·case·a·dictionary·with·string·keys·and·sets·of·integers
323 as·values,·which·conceal·the·underlying·mapped·classes.</p>319 as·values,·which·conceal·the·underlying·mapped·classes.</p>
324 </p></li>320 </p></li>
 321 <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
 322 “Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price
 323 with·each·via·an·association·object·called·“OrderItem”</p>
 324 </p></li>
325 <li><p><p><a·class="reference·external"·href="../_modules/examples/association/proxied_association.html">proxied_association.py</a>·-·Same·example·as·basic_association,·adding·in325 <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
326 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·references326 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
327 to·<code·class="docutils·literal·notranslate"><span·class="pre">OrderItem</span></code>·optional.</p>327 to·<code·class="docutils·literal·notranslate"><span·class="pre">OrderItem</span></code>·optional.</p>
328 </p></li>328 </p></li>
329 </ul>329 </ul>
330 </p>330 </p>
331 </section>331 </section>
332 <section·id="module-examples.asyncio">332 <section·id="module-examples.asyncio">
333 <span·id="asyncio-integration"></span><span·id="examples-asyncio"></span><h3>Asyncio·Integration<a·class="headerlink"·href="#module-examples.asyncio"·title="Permalink·to·this·heading">¶</a></h3>333 <span·id="asyncio-integration"></span><span·id="examples-asyncio"></span><h3>Asyncio·Integration<a·class="headerlink"·href="#module-examples.asyncio"·title="Permalink·to·this·heading">¶</a></h3>
334 <p>Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy.</p>334 <p>Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy.</p>
335 <p>Listing·of·files:<ul·class="simple">335 <p>Listing·of·files:<ul·class="simple">
336 <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 
337 for·asynchronous·ORM·use.</p> 
338 </p></li> 
339 <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·object336 <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
340 for·asynchronous·ORM·use,·including·the·optional·run_sync()·method.</p>337 for·asynchronous·ORM·use,·including·the·optional·run_sync()·method.</p>
341 </p></li>338 </p></li>
 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
 340 for·asynchronous·ORM·use.</p>
 341 </p></li>
342 <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>
343 </p></li>343 </p></li>
344 <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>344 <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>
345 along·many·asyncio·database·connections,·merging·ORM·results·into·a·single345 along·many·asyncio·database·connections,·merging·ORM·results·into·a·single
346 <code·class="docutils·literal·notranslate"><span·class="pre">AsyncSession</span></code>.</p>346 <code·class="docutils·literal·notranslate"><span·class="pre">AsyncSession</span></code>.</p>
347 </p></li>347 </p></li>
348 </ul>348 </ul>
Offset 392, 29 lines modifiedOffset 392, 29 lines modified
392 <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·association392 <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
393 using·a·single·target·table·and·a·single·association·table,393 using·a·single·target·table·and·a·single·association·table,
394 referred·to·by·all·parent·tables.··The·association·table394 referred·to·by·all·parent·tables.··The·association·table
395 contains·a·“discriminator”·column·which·determines·what·type·of395 contains·a·“discriminator”·column·which·determines·what·type·of
396 parent·object·associates·to·each·particular·row·in·the·association396 parent·object·associates·to·each·particular·row·in·the·association
397 table.</p>397 table.</p>
398 </p></li>398 </p></li>
399 <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 
400 objects·within·individual·tables,·each·one·generated·to·persist 
401 those·objects·on·behalf·of·a·particular·parent·class.</p>399 <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
 400 via·a·individually·generated·association·tables·for·each·parent·class.
 401 The·associated·objects·themselves·are·persisted·in·a·single·table
 402 shared·among·all·parents.</p>
402 </p></li>403 </p></li>
403 <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·fashion404 <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
404 to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.··This405 to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.··This
405 approach·bypasses·standard·referential·integrity406 approach·bypasses·standard·referential·integrity
406 practices,·in·that·the·“foreign·key”·column·is·not·actually407 practices,·in·that·the·“foreign·key”·column·is·not·actually
407 constrained·to·refer·to·any·particular·table;·instead,408 constrained·to·refer·to·any·particular·table;·instead,
408 in-application·logic·is·used·to·determine·which·table·is·referenced.</p>409 in-application·logic·is·used·to·determine·which·table·is·referenced.</p>
409 </p></li>410 </p></li>
410 <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·association411 <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
 412 objects·within·individual·tables,·each·one·generated·to·persist
 413 those·objects·on·behalf·of·a·particular·parent·class.</p>
411 via·a·individually·generated·association·tables·for·each·parent·class. 
412 The·associated·objects·themselves·are·persisted·in·a·single·table 
413 shared·among·all·parents.</p> 
414 </p></li>414 </p></li>
415 </ul>415 </ul>
416 </p>416 </p>
417 </section>417 </section>
418 <section·id="module-examples.large_collection">418 <section·id="module-examples.large_collection">
419 <span·id="large-collections"></span><h3>Large·Collections<a·class="headerlink"·href="#module-examples.large_collection"·title="Permalink·to·this·heading">¶</a></h3>419 <span·id="large-collections"></span><h3>Large·Collections<a·class="headerlink"·href="#module-examples.large_collection"·title="Permalink·to·this·heading">¶</a></h3>
420 <p>Large·collection·example.</p>420 <p>Large·collection·example.</p>
Offset 501, 23 lines modifiedOffset 501, 23 lines modified
501 <div·class="admonition·seealso">501 <div·class="admonition·seealso">
502 <p·class="admonition-title">See·also</p>502 <p·class="admonition-title">See·also</p>
503 <p><a·class="reference·internal"·href="../faq/performance.html#faq-how-to-profile"><span·class="std·std-ref">How·can·I·profile·a·SQLAlchemy·powered·application?</span></a></p>503 <p><a·class="reference·internal"·href="../faq/performance.html#faq-how-to-profile"><span·class="std·std-ref">How·can·I·profile·a·SQLAlchemy·powered·application?</span></a></p>
504 </div>504 </div>
505 <section·id="file-listing">505 <section·id="file-listing">
506 <h4>File·Listing<a·class="headerlink"·href="#file-listing"·title="Permalink·to·this·heading">¶</a></h4>506 <h4>File·Listing<a·class="headerlink"·href="#file-listing"·title="Permalink·to·this·heading">¶</a></h4>
507 <p>Listing·of·files:<ul·class="simple">507 <p>Listing·of·files:<ul·class="simple">
 508 <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>
508 <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 
509 within·a·distinct·transaction,·and·afterwards·returns·to·essentially·a 
510 “closed”·state.···This·would·be·analogous·to·an·API·call·that·starts·up 
511 a·database·connection,·inserts·the·row,·commits·and·closes.</p> 
512 </p></li>509 </p></li>
513 <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·single510 <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
514 record·by·primary·key</p>511 record·by·primary·key</p>
515 </p></li>512 </p></li>
516 <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>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
 514 within·a·distinct·transaction,·and·afterwards·returns·to·essentially·a
 515 “closed”·state.···This·would·be·analogous·to·an·API·call·that·starts·up
 516 a·database·connection,·inserts·the·row,·commits·and·closes.</p>
517 </p></li>517 </p></li>
518 <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·number518 <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
519 of·rows·in·bulk.</p>519 of·rows·in·bulk.</p>
520 </p></li>520 </p></li>
521 <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·number521 <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
522 of·very·small·and·simple·rows.</p>522 of·very·small·and·simple·rows.</p>
523 </p></li>523 </p></li>
Offset 669, 22 lines modifiedOffset 669, 22 lines modified
669 </section>669 </section>
670 <section·id="module-examples.join_conditions">670 <section·id="module-examples.join_conditions">
671 <span·id="relationship-join-conditions"></span><span·id="examples-relationships"></span><h3>Relationship·Join·Conditions<a·class="headerlink"·href="#module-examples.join_conditions"·title="Permalink·to·this·heading">¶</a></h3>671 <span·id="relationship-join-conditions"></span><span·id="examples-relationships"></span><h3>Relationship·Join·Conditions<a·class="headerlink"·href="#module-examples.join_conditions"·title="Permalink·to·this·heading">¶</a></h3>
672 <p>Examples·of·various·<a·class="reference·internal"·href="relationship_api.html#sqlalchemy.orm.relationship"·title="sqlalchemy.orm.relationship"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">relationship()</span></code></a>·configurations,672 <p>Examples·of·various·<a·class="reference·internal"·href="relationship_api.html#sqlalchemy.orm.relationship"·title="sqlalchemy.orm.relationship"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">relationship()</span></code></a>·configurations,
673 which·make·use·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">primaryjoin</span></code>·argument·to·compose·special·types673 which·make·use·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">primaryjoin</span></code>·argument·to·compose·special·types
674 of·join·conditions.</p>674 of·join·conditions.</p>
675 <p>Listing·of·files:<ul·class="simple">675 <p>Listing·of·files:<ul·class="simple">
676 <li><p><p><a·class="reference·external"·href="../_modules/examples/join_conditions/threeway.html">threeway.py</a>·-·Illustrate·a·“three·way·join”·-·where·a·primary·table·joins·to·a·remote 
677 table·via·an·association·table,·but·then·the·primary·table·also·needs 
678 to·refer·to·some·columns·in·the·remote·table·directly.</p> 
679 </p></li> 
680 <li><p><p><a·class="reference·external"·href="../_modules/examples/join_conditions/cast.html">cast.py</a>·-·Illustrate·a·<a·class="reference·internal"·href="relationship_api.html#sqlalchemy.orm.relationship"·title="sqlalchemy.orm.relationship"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">relationship()</span></code></a>·that·joins·two·columns·where·those676 <li><p><p><a·class="reference·external"·href="../_modules/examples/join_conditions/cast.html">cast.py</a>·-·Illustrate·a·<a·class="reference·internal"·href="relationship_api.html#sqlalchemy.orm.relationship"·title="sqlalchemy.orm.relationship"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">relationship()</span></code></a>·that·joins·two·columns·where·those
681 columns·are·not·of·the·same·type,·and·a·CAST·must·be·used·on·the·SQL677 columns·are·not·of·the·same·type,·and·a·CAST·must·be·used·on·the·SQL
682 side·in·order·to·match·them.</p>678 side·in·order·to·match·them.</p>
683 </p></li>679 </p></li>
 680 <li><p><p><a·class="reference·external"·href="../_modules/examples/join_conditions/threeway.html">threeway.py</a>·-·Illustrate·a·“three·way·join”·-·where·a·primary·table·joins·to·a·remote
Max diff block lines reached; 14018/24967 bytes (56.15%) of diff not shown.
14.4 KB
html2text {}
    
Offset 123, 32 lines modifiedOffset 123, 33 lines modified
123 ····*·adjacency_list.py123 ····*·adjacency_list.py
  
124 ****·Associations¶·****124 ****·Associations¶·****
125 Examples·illustrating·the·usage·of·the·“association·object”·pattern,·where·an125 Examples·illustrating·the·usage·of·the·“association·object”·pattern,·where·an
126 intermediary·class·mediates·the·relationship·between·two·classes·that·are126 intermediary·class·mediates·the·relationship·between·two·classes·that·are
127 associated·in·a·many-to-many·pattern.127 associated·in·a·many-to-many·pattern.
128 Listing·of·files:128 Listing·of·files:
 129 ····*·dict_of_sets_with_default.py·-·An·advanced·association·proxy·example
 130 ······which·illustrates·nesting·of·association·proxies·to·produce·multi-level
 131 ······Python·collections,·in·this·case·a·dictionary·with·string·keys·and·sets
 132 ······of·integers·as·values,·which·conceal·the·underlying·mapped·classes.
129 ····*·basic_association.py·-·Illustrate·a·many-to-many·relationship·between·an133 basic_association.py·-·Illustrate·a·many-to-many·relationship·between·an
130 ······“Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price134 “Order”·and·a·collection·of·“Item”·objects,·associating·a·purchase·price·with
131 ······with·each·via·an·association·object·called·“OrderItem”135 each·via·an·association·object·called·“OrderItem”
132 dict_of_sets_with_default.py·-·An·advanced·association·proxy·example·which 
133 illustrates·nesting·of·association·proxies·to·produce·multi-level·Python 
134 collections,·in·this·case·a·dictionary·with·string·keys·and·sets·of·integers·as 
135 values,·which·conceal·the·underlying·mapped·classes. 
136 proxied_association.py·-·Same·example·as·basic_association,·adding·in·usage·of136 proxied_association.py·-·Same·example·as·basic_association,·adding·in·usage·of
137 sqlalchemy.ext.associationproxy·to·make·explicit·references·to·OrderItem137 sqlalchemy.ext.associationproxy·to·make·explicit·references·to·OrderItem
138 optional.138 optional.
  
139 ****·Asyncio·Integration¶·****139 ****·Asyncio·Integration¶·****
140 Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy.140 Examples·illustrating·the·asyncio·engine·feature·of·SQLAlchemy.
141 Listing·of·files:141 Listing·of·files:
 142 ····*·greenlet_orm.py·-·Illustrates·use·of·the
 143 ······sqlalchemy.ext.asyncio.AsyncSession·object·for·asynchronous·ORM·use,
 144 ······including·the·optional·run_sync()·method.
142 ····*·async_orm.py·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession145 async_orm.py·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession
143 ······object·for·asynchronous·ORM·use.146 object·for·asynchronous·ORM·use.
144 greenlet_orm.py·-·Illustrates·use·of·the·sqlalchemy.ext.asyncio.AsyncSession 
145 object·for·asynchronous·ORM·use,·including·the·optional·run_sync()·method. 
146 basic.py·-·Illustrates·the·asyncio·engine·/·connection·interface.147 basic.py·-·Illustrates·the·asyncio·engine·/·connection·interface.
147 gather_orm_statements.py·-·Illustrates·how·to·run·many·statements·concurrently148 gather_orm_statements.py·-·Illustrates·how·to·run·many·statements·concurrently
148 using·asyncio.gather()·along·many·asyncio·database·connections,·merging·ORM149 using·asyncio.gather()·along·many·asyncio·database·connections,·merging·ORM
149 results·into·a·single·AsyncSession.150 results·into·a·single·AsyncSession.
  
150 ****·Directed·Graphs¶·****151 ****·Directed·Graphs¶·****
151 An·example·of·persistence·for·a·directed·graph·structure.·The·graph·is·stored152 An·example·of·persistence·for·a·directed·graph·structure.·The·graph·is·stored
Offset 182, 26 lines modifiedOffset 183, 26 lines modified
182 with_SQLAlchemy.183 with_SQLAlchemy.
183 Listing·of·files:184 Listing·of·files:
184 ····*·discriminator_on_association.py·-·Illustrates·a·mixin·which·provides·a185 ····*·discriminator_on_association.py·-·Illustrates·a·mixin·which·provides·a
185 ······generic·association·using·a·single·target·table·and·a·single·association186 ······generic·association·using·a·single·target·table·and·a·single·association
186 ······table,·referred·to·by·all·parent·tables.·The·association·table·contains·a187 ······table,·referred·to·by·all·parent·tables.·The·association·table·contains·a
187 ······“discriminator”·column·which·determines·what·type·of·parent·object188 ······“discriminator”·column·which·determines·what·type·of·parent·object
188 ······associates·to·each·particular·row·in·the·association·table.189 ······associates·to·each·particular·row·in·the·association·table.
189 table_per_related.py·-·Illustrates·a·generic·association·which·persists 
190 association·objects·within·individual·tables,·each·one·generated·to·persist 
191 those·objects·on·behalf·of·a·particular·parent·class.190 table_per_association.py·-·Illustrates·a·mixin·which·provides·a·generic
 191 association·via·a·individually·generated·association·tables·for·each·parent
 192 class.·The·associated·objects·themselves·are·persisted·in·a·single·table·shared
 193 among·all·parents.
192 generic_fk.py·-·Illustrates·a·so-called·“generic·foreign·key”,·in·a·similar194 generic_fk.py·-·Illustrates·a·so-called·“generic·foreign·key”,·in·a·similar
193 fashion·to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.·This·approach195 fashion·to·that·of·popular·frameworks·such·as·Django,·ROR,·etc.·This·approach
194 bypasses·standard·referential·integrity·practices,·in·that·the·“foreign·key”196 bypasses·standard·referential·integrity·practices,·in·that·the·“foreign·key”
195 column·is·not·actually·constrained·to·refer·to·any·particular·table;·instead,197 column·is·not·actually·constrained·to·refer·to·any·particular·table;·instead,
196 in-application·logic·is·used·to·determine·which·table·is·referenced.198 in-application·logic·is·used·to·determine·which·table·is·referenced.
 199 table_per_related.py·-·Illustrates·a·generic·association·which·persists
 200 association·objects·within·individual·tables,·each·one·generated·to·persist
 201 those·objects·on·behalf·of·a·particular·parent·class.
197 table_per_association.py·-·Illustrates·a·mixin·which·provides·a·generic 
198 association·via·a·individually·generated·association·tables·for·each·parent 
199 class.·The·associated·objects·themselves·are·persisted·in·a·single·table·shared 
200 among·all·parents. 
  
201 ****·Large·Collections¶·****202 ****·Large·Collections¶·****
202 Large·collection·example.203 Large·collection·example.
203 Illustrates·the·options·to·use·with·relationship()·when·the·list·of·related204 Illustrates·the·options·to·use·with·relationship()·when·the·list·of·related
204 objects·is·very·large,·including:205 objects·is·very·large,·including:
205 ····*·“dynamic”·relationships·which·query·slices·of·data·as·accessed206 ····*·“dynamic”·relationships·which·query·slices·of·data·as·accessed
206 ····*·how·to·use·ON·DELETE·CASCADE·in·conjunction·with·passive_deletes=True·to207 ····*·how·to·use·ON·DELETE·CASCADE·in·conjunction·with·passive_deletes=True·to
Offset 262, 22 lines modifiedOffset 263, 22 lines modified
262 $·python·-m·examples.performance·bulk_inserts·\263 $·python·-m·examples.performance·bulk_inserts·\
263 ····--dburl·mysql+mysqldb://scott:tiger@localhost/test·\264 ····--dburl·mysql+mysqldb://scott:tiger@localhost/test·\
264 ····--profile·--num·1000265 ····--profile·--num·1000
265 See·also266 See·also
266 How_can_I_profile_a_SQLAlchemy_powered_application?267 How_can_I_profile_a_SQLAlchemy_powered_application?
267 ***·File·Listing¶·***268 ***·File·Listing¶·***
268 Listing·of·files:269 Listing·of·files:
 270 ····*·__main__.py·-·Allows·the·examples/performance·package·to·be·run·as·a
 271 ······script.
269 ····*·single_inserts.py·-·In·this·series·of·tests,·we’re·looking·at·a·method 
270 ······that·inserts·a·row·within·a·distinct·transaction,·and·afterwards·returns 
271 ······to·essentially·a·“closed”·state.·This·would·be·analogous·to·an·API·call 
272 ······that·starts·up·a·database·connection,·inserts·the·row,·commits·and 
273 ······closes. 
274 short_selects.py·-·This·series·of·tests·illustrates·different·ways·to·SELECT·a272 short_selects.py·-·This·series·of·tests·illustrates·different·ways·to·SELECT·a
275 single·record·by·primary·key273 single·record·by·primary·key
276 __main__.py·-·Allows·the·examples/performance·package·to·be·run·as·a·script.274 single_inserts.py·-·In·this·series·of·tests,·we’re·looking·at·a·method·that
 275 inserts·a·row·within·a·distinct·transaction,·and·afterwards·returns·to
 276 essentially·a·“closed”·state.·This·would·be·analogous·to·an·API·call·that
 277 starts·up·a·database·connection,·inserts·the·row,·commits·and·closes.
277 bulk_inserts.py·-·This·series·of·tests·illustrates·different·ways·to·INSERT·a278 bulk_inserts.py·-·This·series·of·tests·illustrates·different·ways·to·INSERT·a
278 large·number·of·rows·in·bulk.279 large·number·of·rows·in·bulk.
279 large_resultsets.py·-·In·this·series·of·tests,·we·are·looking·at·time·to·load·a280 large_resultsets.py·-·In·this·series·of·tests,·we·are·looking·at·time·to·load·a
280 large·number·of·very·small·and·simple·rows.281 large·number·of·very·small·and·simple·rows.
281 bulk_updates.py·-·This·series·of·tests·will·illustrate·different·ways·to·UPDATE282 bulk_updates.py·-·This·series·of·tests·will·illustrate·different·ways·to·UPDATE
282 a·large·number·of·rows·in·bulk·(under·construction!·there’s·just·one·test·at283 a·large·number·of·rows·in·bulk·(under·construction!·there’s·just·one·test·at
283 the·moment)284 the·moment)
Offset 425, 20 lines modifiedOffset 426, 20 lines modified
425 test_subqueryload·:·load·everything,·subquery·eager·loading.·(1000·iterations);426 test_subqueryload·:·load·everything,·subquery·eager·loading.·(1000·iterations);
426 total·time·2.977696·sec427 total·time·2.977696·sec
  
427 ****·Relationship·Join·Conditions¶·****428 ****·Relationship·Join·Conditions¶·****
428 Examples·of·various·relationship()·configurations,·which·make·use·of·the429 Examples·of·various·relationship()·configurations,·which·make·use·of·the
429 primaryjoin·argument·to·compose·special·types·of·join·conditions.430 primaryjoin·argument·to·compose·special·types·of·join·conditions.
430 Listing·of·files:431 Listing·of·files:
431 ····*·threeway.py·-·Illustrate·a·“three·way·join”·-·where·a·primary·table·joins 
432 ······to·a·remote·table·via·an·association·table,·but·then·the·primary·table 
433 ······also·needs·to·refer·to·some·columns·in·the·remote·table·directly. 
434 cast.py·-·Illustrate·a·relationship()·that·joins·two·columns·where·those432 ····*·cast.py·-·Illustrate·a·relationship()·that·joins·two·columns·where·those
435 columns·are·not·of·the·same·type,·and·a·CAST·must·be·used·on·the·SQL·side·in433 ······columns·are·not·of·the·same·type,·and·a·CAST·must·be·used·on·the·SQL·side
436 order·to·match·them.434 ······in·order·to·match·them.
 435 threeway.py·-·Illustrate·a·“three·way·join”·-·where·a·primary·table·joins·to·a
 436 remote·table·via·an·association·table,·but·then·the·primary·table·also·needs·to
 437 refer·to·some·columns·in·the·remote·table·directly.
  
437 ****·Space·Invaders¶·****438 ****·Space·Invaders¶·****
438 A·Space·Invaders·game·using·SQLite·as·the·state·machine.439 A·Space·Invaders·game·using·SQLite·as·the·state·machine.
439 Originally·developed·in·2012.·Adapted·to·work·in·Python·3.440 Originally·developed·in·2012.·Adapted·to·work·in·Python·3.
440 Runs·in·a·textual·console·using·ASCII·art.441 Runs·in·a·textual·console·using·ASCII·art.
441 [orm/space_invaders.jpg]442 [orm/space_invaders.jpg]
442 To·run:443 To·run:
Offset 556, 28 lines modifiedOffset 557, 27 lines modified
556 Several·examples·that·illustrate·the·technique·of·intercepting·changes·that557 Several·examples·that·illustrate·the·technique·of·intercepting·changes·that
557 would·be·first·interpreted·as·an·UPDATE·on·a·row,·and·instead·turning·it·into558 would·be·first·interpreted·as·an·UPDATE·on·a·row,·and·instead·turning·it·into
Max diff block lines reached; 6946/14705 bytes (47.24%) of diff not shown.
1.83 KB
./usr/share/doc/python-sqlalchemy-doc/html/searchindex.js
1.72 KB
js-beautify {}
    
Offset 12439, 17 lines modifiedOffset 12439, 17 lines modified
12439 ········"n5":·98,12439 ········"n5":·98,
12440 ········"add_neighbor":·98,12440 ········"add_neighbor":·98,
12441 ········"higher_neighbor":·98,12441 ········"higher_neighbor":·98,
12442 ········"directed_graph":·98,12442 ········"directed_graph":·98,
12443 ········"supplier":·98,12443 ········"supplier":·98,
12444 ········"hasaddress":·98,12444 ········"hasaddress":·98,
12445 ········"generic_fk":·98,12445 ········"generic_fk":·98,
12446 ········"table_per_rel":·98, 
12447 ········"ror":·98, 
12448 ········"table_per_associ":·98,12446 ········"table_per_associ":·98,
 12447 ········"ror":·98,
 12448 ········"table_per_rel":·98,
12449 ········"materialized_path":·98,12449 ········"materialized_path":·98,
12450 ········"nested_set":·98,12450 ········"nested_set":·98,
12451 ········"single_insert":·98,12451 ········"single_insert":·98,
12452 ········"bulk_upd":·98,12452 ········"bulk_upd":·98,
12453 ········"test_orm_commit":·98,12453 ········"test_orm_commit":·98,
12454 ········"test_bulk_insert_dictionari":·98,12454 ········"test_bulk_insert_dictionari":·98,
12455 ········"test_cor":·98,12455 ········"test_cor":·98,
Offset 12504, 34 lines modifiedOffset 12504, 34 lines modified
12504 ········"sc1":·98,12504 ········"sc1":·98,
12505 ········"sc1modifi":·98,12505 ········"sc1modifi":·98,
12506 ········"someclasshistori":·98,12506 ········"someclasshistori":·98,
12507 ········"__history_mapper__":·98,12507 ········"__history_mapper__":·98,
12508 ········"_history_mapp":·98,12508 ········"_history_mapp":·98,
12509 ········"somehistoryclass":·98,12509 ········"somehistoryclass":·98,
12510 ········"use_mapper_vers":·98,12510 ········"use_mapper_vers":·98,
12511 ········"versioned_update_old_row":·98, 
12512 ········"versioned_rows_w_versionid":·98, 
12513 ········"versioned_map":·98,12511 ········"versioned_map":·98,
 12512 ········"versioned_rows_w_versionid":·98,
 12513 ········"versioned_update_old_row":·98,
12514 ········"breviti":·98,12514 ········"breviti":·98,
12515 ········"shrew":·98,12515 ········"shrew":·98,
12516 ········"anim":·98,12516 ········"anim":·98,
12517 ········"cute":·98,12517 ········"cute":·98,
12518 ········"weasel":·98,12518 ········"weasel":·98,
12519 ········"poison":·98,12519 ········"poison":·98,
12520 ········"animalfact":·98,12520 ········"animalfact":·98,
12521 ········"custom_manag":·98,12521 ········"custom_manag":·98,
12522 ········"weather":·98,12522 ········"weather":·98,
12523 ········"contin":·98,12523 ········"contin":·98,
12524 ········"spoken":·98,12524 ········"spoken":·98,
 12525 ········"separate_databas":·98,
 12526 ········"separate_t":·98,
12525 ········"separate_schema_transl":·98,12527 ········"separate_schema_transl":·98,
12526 ········"schema_translates_map":·98,12528 ········"schema_translates_map":·98,
12527 ········"separate_t":·98, 
12528 ········"separate_databas":·98, 
12529 ········"temporal_rang":·98, 
12530 ········"filter_publ":·98,12529 ········"filter_publ":·98,
 12530 ········"temporal_rang":·98,
12531 ········"demo":·98,12531 ········"demo":·98,
12532 ········"datafil":·98,12532 ········"datafil":·98,
12533 ········"helloworld":·98,12533 ········"helloworld":·98,
12534 ········"local_session_cach":·98,12534 ········"local_session_cach":·98,
12535 ········"datamodel":·98,12535 ········"datamodel":·98,
12536 ········"postalcod":·98,12536 ········"postalcod":·98,
12537 ········"citi":·[98,·124,·133],12537 ········"citi":·[98,·124,·133],