mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
81be31322a
commit
31fb006a9b
5 changed files with 42 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ Here is a more complex example:
|
|||
.. code-block:: python
|
||||
|
||||
async def render_demo(datasette, columns, rows):
|
||||
db = next(iter(datasette.databases.values()))
|
||||
db = datasette.get_database()
|
||||
result = await db.execute("select sqlite_version()")
|
||||
first_row = " | ".join(columns)
|
||||
lines = [first_row]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue