Google App Engine: [A Better] Many-to-many JOIN
All books at library "{{ lib }}"
{% for book in books_at_lib %}
| {{ book.title }} |
{{ book.author }} |
{% endfor %}
All libraries with book "{{ forbook }}"
{% for lib in libs_by_book %}
| {{ lib.name }} |
{{ lib.address }} |
{{ lib.city }} |
{% endfor %}
Books by library
| Library |
Street |
City |
Title |
Author |
{% for lib in libs_books %}
{% for book in lib.books %}
| {{ lib.name }} |
{{ lib.address }} |
{{ lib.city }} |
{{ book.title }} |
{{ book.author }} |
{% endfor %}
{% endfor %}
Libraries by books
{% for book in books_libs %}
{% for lib in book.libraries %}
| {{ book.title }} |
{{ book.author }} |
{{ lib.name }} |
{{ lib.address }} |
{{ lib.city }} |
{% endfor %}
{% endfor %}