Source

sphinx-contrib / sqltable / docs / example.rst

Full commit

Examples

Given a SQLite database containing:

this reStructuredText input:

.. sqltable:: List of Users
   :connection_string: sqlite:///sampledata.db

   select name as 'Name', email as 'E-mail' from users
   order by Name asc

produces this table: