garson garson - 6 months ago 19
SQL Question

How do I access /db (Heroku PHP documentation)

In the Heroku PHP documentation they talk about "accessing /db" but I am not sure how to do this. Here is the page I am referring to:

https://devcenter.heroku.com/articles/getting-started-with-php#provision-a-database

It's the part that starts "Now when you access your app’s /db route..."

Answer

/db will be exposed as a web page and will return the contents defined by the query and the template. This way you can easily provide read access (GET http method) for a table's content.