The “Introduction” page (https://www.encode.io/databases/) uses direct SQL queries to create the tables, whereas the “Database Queries” page seems to assume that the tables already exist when querying with SQLAlchemy.
The official SQLAlchemy Core explains to use
metadata.create_all(engine): https://docs.sqlalchemy.org/en/13/core/tutorial.html#define-and-create-tables, but that’s not available with
databases package since there is no engine.
What is the recommended way to ensure the tables exist?
For what it’s worth, I’m trying to use it with Starlette, which didn’t have any examples of creating the tables either.