CARGO ?= cargo
WASM_PACK ?= wasm-pack
SQLLOGIC_PATH ?= tests/slt/**/*.slt
PYO3_PYTHON ?= /usr/bin/python3.12
.PHONY: test test-python test-wasm test-slt test-all wasm-build check tpcc tpcc-dual cargo-check build wasm-examples native-examples fmt clippy
test:
$(CARGO) test --all
test-python:
PYO3_PYTHON=$(PYO3_PYTHON) $(CARGO) test --features python test_python_
cargo-check:
$(CARGO) check
build:
$(CARGO) build
wasm-build:
$(WASM_PACK) build --release --target nodejs
test-wasm:
$(WASM_PACK) test --node -- --package kite_sql --lib
test-slt:
$(CARGO) run -p sqllogictest-test -- --path '$(SQLLOGIC_PATH)'
test-all: test test-wasm test-slt test-python
fmt:
$(CARGO) fmt --all -- --check
clippy:
$(CARGO) clippy --all-targets --all-features -- -D warnings
check: fmt clippy
tpcc:
$(CARGO) run -p tpcc --release
tpcc-dual:
$(CARGO) run -p tpcc --release -- --backend dual --measure-time 60
wasm-examples:
node examples/wasm_hello_world.test.mjs
node examples/wasm_index_usage.test.mjs
native-examples:
$(CARGO) run --example hello_world
$(CARGO) run --example transaction