如何在python中解决sqlite fts分段错误?

时间:2017-01-10 19:48:37

标签: sqlite

def tokenize():

with apsw.Connection('texts.db') as connection:
    c = connection.cursor()
    fts.register_tokenizer(c, '***', fts.make_tokenizer_module(OUWordTokenizer('xyz')))
    c.execute("CREATE VIRTUAL TABLE IF NOT EXISTS text_idx USING fts4 (id, title, book, author, date,"
              "chapter, verse, passage, link, documentType, tokenize={}".format("oulatin")+")")
    c.execute("INSERT INTO text_idx (id, title, book, author, date, chapter, verse, passage, link," ""
              "documentType) SELECT id, title, book, author, date, chapter, verse, passage,"
              "link, documentType FROM texts")

以上是创建虚拟表并插入其中的简单代码。抛出以下错误

PS C:\ Users \ venka \ Documents \ phyllo-master \ phyllo-master> docker run -it dckr_img / bin / bash

bash-4.3#python3 app.py

分段错误

以及如何为单个表创建多个索引?

0 个答案:

没有答案