It's return_db, not _return_db - refs #643

This commit is contained in:
Simon Willison 2024-11-08 12:13:05 -08:00
commit 21e80dfbcf

View file

@ -131,7 +131,7 @@ As a special niche feature, if your plugin needs to import some files and then a
)
def show_schema_for_files(ctx, paths):
from sqlite_utils.cli import memory
db = ctx.invoke(memory, paths=paths, _return_db=True)
db = ctx.invoke(memory, paths=paths, return_db=True)
# Now do something with that database
click.echo(db.schema)