wispem-wantex 0371fb4144
Some checks failed
CI / build-docker (push) Successful in 5s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 6s
sqlite_lint: add support for FTS5 and virtual tables
2026-01-17 09:00:24 +09:00

27 lines
635 B
SQL

create table stuff (
rowid integer primary key,
data text not null,
amount integer not null
) strict;
create index index_stuff_amount on stuff (amount);
create virtual table stuff_fts using fts5(
data,
content='stuff',
content_rowid='rowid',
tokenize='trigram'
);
create table stuff2 (
weird_pk integer primary key,
label text not null unique,
stuff_id integer references stuff(rowid),
alternative_stuff_id integer references stuff(amount)
) strict, without rowid;
create table stuff3 (
rowid integer primary key,
stuff2_id integer not null references stuff2(weird_pk)
) strict;