mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Useful error message for enable_fts() on views, closes #220
This commit is contained in:
parent
50d2096f5e
commit
ef13bb046f
2 changed files with 13 additions and 0 deletions
|
|
@ -2162,6 +2162,11 @@ class View(Queryable):
|
|||
def drop(self):
|
||||
self.db.execute("DROP VIEW [{}]".format(self.name))
|
||||
|
||||
def enable_fts(self, *args, **kwargs):
|
||||
raise NotImplementedError(
|
||||
"enable_fts() is supported on tables but not on views"
|
||||
)
|
||||
|
||||
|
||||
def chunks(sequence, size):
|
||||
iterator = iter(sequence)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue