Comments (29)
hey Trevor. I'll start implementing this soon. Thanks
from sqlite_orm.
PR is on its way #1279
from sqlite_orm.
@trevornagy please check unindexed()
column constraint function in dev
branch. Other features are on its way and will be merged soon
from sqlite_orm.
Sorry! You're correct, I copied the incorrect commit id. It works as expected.
from sqlite_orm.
Thank you very much for your quick work by the way!
from sqlite_orm.
@trevornagy please check new prefix
function in dev
branch
from sqlite_orm.
@trevornagy thanks for pointing out. This is my misunderstanding. I'll refactor it soon as a table constraint not column constraint
from sqlite_orm.
@trevornagy this is good! Only tokenize
table constraint left to close this issue. I'll add it soon
from sqlite_orm.
@trevornagy sorry I forgot to mention content. Just my negligence, of course content will be implemented within this issue ASAP
from sqlite_orm.
@trevornagy I got a question: how are you going to use tokenize
feature? Do you have exact SQL you expect to be used? It can help me with unit tests
from sqlite_orm.
PR #1292
from sqlite_orm.
@trevornagy please check tokenize
feature in dev
from sqlite_orm.
Hey @fnc12, my apologies for the delayed response. I think I'll need content='tbl'
, to replicate the following example below.
What I'm trying to accomplish is documented here: https://www.sqlite.org/fts5.html#external_content_tables
The example in sqlite would look something like:
-- Create a table. And an external content fts5 table to index it.
CREATE TABLE tbl(a INTEGER PRIMARY KEY, b, c);
CREATE VIRTUAL TABLE fts_idx USING fts5(b, c, content='tbl');
What's missing is being able to specify the external content b
& c
in this table.
I personally do not need the content_rowid
option as I just use the default.
Once again, sorry for the delayed response!
from sqlite_orm.
@fnc12 Just tested with the unindexed PR commit on dev, getting the following errors:
1> error C2039: 'unindexed': is not a member of 'sqlite_orm'
1> sqlite_orm.h(23342,11):
1> see declaration of 'sqlite_orm'
1> error C3861: 'unindexed': identifier not found
1> error C2672: 'sqlite_orm::make_column': no matching overloaded function found
1> sqlite_orm.h(2994,37):
1> could be 'sqlite_orm::internal::column_t<G,S,Op...> sqlite_orm::make_column(std::string,G,S,Op...)'
from sqlite_orm.
@trevornagy unindexed
function exists in dev
branch. Proof https://github.com/fnc12/sqlite_orm/blob/dev/include/sqlite_orm/sqlite_orm.h#L2183. I bet you messed up with the commits. Just pull dev
branch, it should work
from sqlite_orm.
PR with prefix
is on its way #1282
from sqlite_orm.
@fnc12 Looked at the API and it looks like you create the prefix inside a make_column? This seems strange to me as each prefix doesn't apply to a column but rather the whole table?
https://www.sqlite.org/fts5.html#prefix_indexes
The test in using_fts5.cpp
has the expected as: expected = R"(USING FTS5("title", "body" prefix=2))";
But I would expect it as: expected = R"(USING FTS5("title", "body", prefix=2))";
Note the ,
between "body" and "prefix=2"
Maybe I'm misinterpreting the example/test though?
from sqlite_orm.
PR is here #1284
@trevornagy btw you can still use prefix
func at table level anyway
from sqlite_orm.
@trevornagy prefix fix is merged
from sqlite_orm.
Awesome, works as expected now. Thank you!
from sqlite_orm.
Content was originally requested as well as tokenizer, but yes, amazing work. Really appreciated
from sqlite_orm.
Sure, here's an example of tokenize: tokenize='unicode61 remove_diacritics 1'
from sqlite_orm.
PR with content
is on its way #1296
from sqlite_orm.
@trevornagy please check content
function in dev
branch
from sqlite_orm.
@trevornagy do you also need contentless_delete
, content=tbl
and content_rowid
?
from sqlite_orm.
Will test soon, sorry. As for the others, let me verify works with what we currently have and I'll get back to you! Thanks for all the work so far
from sqlite_orm.
@trevornagy table content is on its way #1304
from sqlite_orm.
hey @trevornagy . Please check out dev
for new content<User>()
function which you asked about. Also please say whether all required sub-features of FTS5 are implemented. Thanks
from sqlite_orm.
Related Issues (20)
- add column sync_schema will recreate table HOT 12
- compile error with gcc 5.3.1 HOT 6
- Windows linker error SQLite3 HOT 3
- Warning on CMake >= 3.27 because of support for CMake >= 2.8.12
- Cannot Build my project HOT 2
- `SQLITE_DQS` Compile Option HOT 7
- Failed to compile origin/dev branch using GCC 8.3 HOT 2
- Do not understand select statement generation HOT 3
- Support for returning objects inside columns HOT 6
- Corrupted Databases HOT 10
- API has changed a bit : what is c<Type>? HOT 1
- why is this WITH not recursive? HOT 2
- sync_schema_simulate when used with triggers HOT 11
- How to chain/assign conditions? HOT 4
- How to pre-expand when using the in-memory database mode? HOT 2
- Throwing std::system_error on sync_schema() ("SQL logic error") — syntax error? HOT 2
- Sqlcipher compatibility HOT 2
- PRAGMA options HOT 6
- vs2017 build failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite_orm.