Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: rtee test cases
  • Loading branch information
or orsatti committed Jun 28, 2025
commit dd314ca83b01862818626dcbf261a58c50682efa
14 changes: 14 additions & 0 deletions internal/endtoend/testdata/virtual_table/sqlite/go/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions internal/endtoend/testdata/virtual_table/sqlite/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,38 @@ INSERT INTO tbl VALUES(2, 'aa bb', 't', 'a', 22);

INSERT INTO ft VALUES('xx cc');
INSERT INTO ft VALUES('cc bb');

CREATE TABLE weather (
id INTEGER PRIMARY KEY AUTOINCREMENT,
latitude REAL NOT NULL,
longitude REAL NOT NULL
);


CREATE VIRTUAL TABLE weather_rtree USING rtree(
id,
min_lang, max_long,
min_lat, max_lat
);

CREATE TRIGGER weather_insert
AFTER INSERT
ON weather BEGIN
INSERT INTO
weather_rtree (
id,
min_lang,
max_long,
min_lat,
max_lat
)
VALUES
(
NEW.id,
NEW.latitude,
NEW.latitude,
NEW.longitude,
NEW.longitude
);

END;
Loading