order= is now order_by=, refs #197

This commit is contained in:
Simon Willison 2020-11-06 16:43:33 -08:00
commit bce1872109
3 changed files with 15 additions and 8 deletions

View file

@ -160,7 +160,7 @@ def test_fts_tokenize(fresh_db):
fts_version="FTS{}".format(fts_version),
tokenize="porter",
)
rows = list(table.search("bite", order="rowid"))
rows = list(table.search("bite", order_by="rowid"))
assert len(rows) == 1
assert {
"rowid": 2,
@ -391,7 +391,7 @@ def test_enable_fts_replace_does_nothing_if_args_the_same():
),
),
(
{"columns": ["title"], "order": "rowid", "limit": 10},
{"columns": ["title"], "order_by": "rowid", "limit": 10},
"FTS5",
(
"with original as (\n"