Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lance/scripts/gen_test_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@ mkdir -p "${OUT_DIR}"
cargo run --quiet --manifest-path "${SCRIPT_DIR}/../rust/Cargo.toml" \
--example gen_fixtures -- "${OUT_DIR}"

cat > "${OUT_DIR}/schema.cypher" <<'EOF'
INSTALL LANCE;
LOAD LANCE;
CREATE NODE TABLE city(id INT32, name STRING, population INT64, PRIMARY KEY(id)) WITH (format = 'lance');
CREATE NODE TABLE user(id INT32, name STRING, age INT64, PRIMARY KEY(id)) WITH (format = 'lance');
CREATE REL TABLE follows(FROM user TO user, since INT32) WITH (format = 'lance');
CREATE REL TABLE livesin(FROM user TO city) WITH (format = 'lance');
EOF

echo "Wrote Lance fixtures to ${OUT_DIR}:"
ls "${OUT_DIR}"
6 changes: 6 additions & 0 deletions lance/test/lance_data/schema.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
INSTALL LANCE;
LOAD LANCE;
CREATE NODE TABLE city(id INT32, name STRING, population INT64, PRIMARY KEY(id)) WITH (format = 'lance');
CREATE NODE TABLE user(id INT32, name STRING, age INT64, PRIMARY KEY(id)) WITH (format = 'lance');
CREATE REL TABLE follows(FROM user TO user, since INT32) WITH (format = 'lance');
CREATE REL TABLE livesin(FROM user TO city) WITH (format = 'lance');
Loading