123456789101112131415161718192021222324252627282930313233343536 |
- env:
- pg.connection:
- user: PGUSER
- password: PGPASS
- web:
- resources:
- /db:
- get: pg.single_database_query
- /queries:
- get: pg.multiple_database_queries
- /fortunes:
- get: pg.fortunes
- /updates:
- get: pg.database_updates
- pg:
- cls: pg.PG
- connection:
- dsn: postgresql://tfb-database:5432/hello_world
- username: benchmarkdbuser
- password: benchmarkdbpass
- templates:
- cls: pg.Templates
- fortune: |
- <!DOCTYPE html>
- <html>
- <head><title>Fortunes</title></head>
- <body>
- <table>
- <tr><th>id</th><th>message</th></tr>
- {% for fortune in fortunes %}<tr><td>{{ fortune[0] }}</td><td>{{ fortune[1]|e }}</td></tr>
- {% endfor %}</table>
- </body>
- </html>
|