Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSQLite FTS5 Virtual Table Default Primary Key #1748
Comments
This comment has been minimized.
0xcaff
commented
Jun 1, 2018
|
Hm, on second thought, fts virtual tables are special enough that the workaround is probably the best way to go. Here's a minimal example of using FTS. Here's a minimal example of using full text search:
|
0xcaff
closed this
Jun 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
0xcaff commentedJun 1, 2018
Setup
Versions
Feature Flags
Problem Description
Trying to infer the schema for the table above fails.
What are you trying to accomplish?
I'm trying to use SQLite's FTS5 with diesel.
What is the expected output?
I'd expect diesel to use the
rowidfield as the defaultPRIMARY KEYfor sql tables without explicit primary keys.The FTS5 docs:
What is the actual output?
Related Issues
Workaround
Use
print-schema's blacklist and exclude all tables related to the virtual table, the declare the table explicitly.