File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -190,9 +190,11 @@ Then we tell our ``db`` object to connect to this database::
190
190
asyncio.get_event_loop().run_until_complete(main())
191
191
192
192
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
196
198
information about how to compose this database URL.
197
199
198
200
.. note ::
You can’t perform that action at this time.
0 commit comments