sqlite-utils table_names blah.db is now tables blah.db

Travis tests were failing because on OS X the command was this:

   sqlite-utils table_names blah.db

But in Travis CI the command was this:

   sqlite-utils table-names blah.db

Renaming it to tables fixes this inconsistency.
This commit is contained in:
Simon Willison 2019-01-24 23:04:52 -08:00
commit 9501ba4bf1
4 changed files with 13 additions and 13 deletions

View file

@ -22,7 +22,7 @@ def cli():
@click.option(
"--fts5", help="Just show FTS5 enabled tables", default=False, is_flag=True
)
def table_names(path, fts4, fts5):
def tables(path, fts4, fts5):
"""List the tables in the database"""
db = sqlite_utils.Database(path)
for name in db.table_names(fts4=fts4, fts5=fts5):