Skip to content

Commit

Permalink
Merge pull request #55 from ontodev/delete-row
Browse files Browse the repository at this point in the history
Implement delete row
  • Loading branch information
jamesaoverton authored Jul 24, 2023
2 parents 32359b3 + 9b73ffb commit 074b992
Show file tree
Hide file tree
Showing 19 changed files with 1,872 additions and 297 deletions.
53 changes: 38 additions & 15 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lalrpop = { version = "0.19.9", features = ["lexer"] }
[dependencies]
argparse = "0.2.2"
async-std = { version = "1", features = [ "attributes" ] }
async-recursion = "1.0.4"
async-scoped = { version = "0.7.0", features = [ "use-async-std" ] }
chrono = "0.4.23"
crossbeam = "0.8.1"
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test/output:

test: sqlite_test pg_test api_test random_test

tables_to_test = column datatype rule table table1 table2 table3 table4 table5 table6 table7
tables_to_test = column datatype rule table table1 table2 table3 table4 table5 table6 table7 table8 table9 table10 table11

sqlite_test: build/valve.db test/src/table.tsv | test/output
@echo "Testing valve on sqlite ..."
Expand Down Expand Up @@ -111,6 +111,12 @@ test/perf_test_data/ontology: test/generate_random_test_data.py
./$< 1 10000 5 $@

build/valve_perf.db: valve | test/perf_test_data/ontology build
@if [ -f $@ ]; \
then \
echo "'$@' exists but is out of date. To rebuild '$@', run \`make cleanperfdb\`" \
"before running \`make $@\`" ; \
false; \
fi
time -p ./$< --verbose test/perf_test_data/table.tsv $@

.PHONY: sqlite_perf_test
Expand Down
1 change: 1 addition & 0 deletions scripts/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def export_data(cursor, is_sqlite, args):
WHERE "row" = "row_number"
AND "column" = '{column}'
AND "table" = '{table}'
ORDER BY "message_id" DESC
LIMIT 1
)
ELSE "{column}"{cast}
Expand Down
Loading

0 comments on commit 074b992

Please sign in to comment.