Skip to content

Latest commit

 

History

History
369 lines (213 loc) · 6.7 KB

mongodb-python.rst

File metadata and controls

369 lines (213 loc) · 6.7 KB

Exemplos do livro MongoDB and Python, de Niall O'Higgins

Capítulo 2: Lendo e escrevendo

2.1. Exemplo de documento

src-ora/ch02-01-document-example.py

2.2. Conexão com o MongoDB

src-ora/ch02-02-connecting-to-mongodb.py

2.3. Python handle to mongodb

src-ora/ch02-03-python-handle-to-mongodb.py

2.4. Inserting a document

src-ora/ch02-04-inserting-a-document.py

2.5. Typo example

src-ora/ch02-05-typo-example.py

2.6. Synchronous writes

src-ora/ch02-06-synchronous-writes.py

2.7. Guaranteeing writes to multiple nodes

src-ora/ch02-07-guaranteeing-writes-to-multiple-nodes.py

2.8. Find single doc

src-ora/ch02-08-find-single-doc.py

2.9. Find multiple docs

src-ora/ch02-09-find-multiple-docs.py

2.10. Retrieve single field

src-ora/ch02-10-retrieve-single-field.py

2.11. Counting docs

src-ora/ch02-11-counting-docs.py

2.12. Sorting docs

src-ora/ch02-12-sorting-docs.py

2.13. Sorting2

src-ora/ch02-13-sorting2.py

2.14. Limit docs

src-ora/ch02-14-limit-docs.py

2.15. Skip docs

src-ora/ch02-15-skip-docs.py

2.16. Snapshot mode

src-ora/ch02-16-snapshot-mode.py

2.17. Update modifiers 1

src-ora/ch02-17-update-modifiers-1.py

2.18. Update modifiers 2

src-ora/ch02-18-update-modifiers-2.py

2.19. Updating multiple documents

src-ora/ch02-19-updating-multiple-documents.py

2.20. Delete docs

src-ora/ch02-20-delete-docs.py

2.21. Delete all docs

src-ora/ch02-21-delete-all-docs.py

Capítulo 3: Padrões comuns

3.1. Subdocs 1

src-ora/ch03-01-subdocs-1.py

3.2. Subdocs 2

src-ora/ch03-02-subdocs-2.py

3.3. Atomic subdoc remove

src-ora/ch03-03-atomic-subdoc-remove.py

3.4. Atomic subdoc append

src-ora/ch03-04-atomic-subdoc-append.py

3.5. Atomic subdoc update

src-ora/ch03-05-atomic-subdoc-update.py

3.6. Btree index

src-ora/ch03-06-btree-index.py

3.7. Create btree index

src-ora/ch03-07-create-btree-index.py

3.8. Create compound btree index

src-ora/ch03-08-create-compound-btree-index.py

3.9. Create compound btree index 2

src-ora/ch03-09-create-compound-btree-index-2.py

3.10. Background index creation

src-ora/ch03-10-background-index-creation.py

3.11. Index unique constraint

src-ora/ch03-11-index-unique-constraint.py

3.12. Index unique constraint drop

src-ora/ch03-12-index-unique-constraint-drop.py

3.13. Drop anonymous index

src-ora/ch03-13-drop-anonymous-index.py

3.13. Named index

src-ora/ch03-13-named-index.py

3.14. Create geo index

src-ora/ch03-14-create-geo-index.py

3.15. Query geo index point

src-ora/ch03-15-query-geo-index-point.py

3.16. Query geo index box

src-ora/ch03-16-query-geo-index-box.py

3.17. Query geo index circle

src-ora/ch03-17-query-geo-index-circle.py

3.18. Query geo index spherical model

src-ora/ch03-18-query-geo-index-spherical-model.py

3.19. Avoid keyerrors

src-ora/ch03-19-avoid-keyerrors.py

3.20. Avoid keyerrors 2

src-ora/ch03-20-avoid-keyerrors-2.py

3.21. Using upsert

src-ora/ch03-21-using-upsert.py

3.22. Findandmodify

src-ora/ch03-22-findAndModify.py

3.23. Fast accounting lookup

src-ora/ch03-23-fast-accounting-lookup.py

3.24. Fast accounting update

src-ora/ch03-24-fast-accounting-update.py

3.25. Fast accounting multiple time periods

src-ora/ch03-25-fast-accounting-multiple-time-periods.py

Capítulo 4: Web frameworks

4.1. Pylons pymongo app globals

src-ora/ch04-1-pylons-pymongo-app-globals.py

4.2. Pylons pymongo sample controller

src-ora/ch04-2-pylons-pymongo-sample-controller.py

4.3. Pyramid pymongo sample view callable

src-ora/ch04-3-pyramid-pymongo-sample-view-callable.py

4.4. Django pymongo sample view

src-ora/ch04-4-django-pymongo-sample-view.py