Skip to content

Commit 6503393

Browse files
committed
Refs #238, fix docs about DSN URI protocol
1 parent 28e9c55 commit 6503393

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/tutorial.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ Then we tell our ``db`` object to connect to this database::
190190
asyncio.get_event_loop().run_until_complete(main())
191191

192192
If this runs successfully, then you are connected to the newly created database.
193-
Here ``asyncpg`` indicates the database dialect and driver to use, ``localhost``
194-
is where the server is, and ``gino`` is the name of the database. Check
195-
`here <https://docs.sqlalchemy.org/en/latest/core/engines.html>`__ for more
193+
Here ``postgresql`` indicates the database dialect to use (the default driver
194+
is ``asyncpg``, you can explicitly specify that with ``postgresql+asyncpg://``,
195+
or simply ``asyncpg://``), ``localhost`` is where the server is, and ``gino``
196+
is the name of the database. Check `here
197+
<https://docs.sqlalchemy.org/en/latest/core/engines.html>`__ for more
196198
information about how to compose this database URL.
197199

198200
.. note::

0 commit comments

Comments
 (0)