mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
* add udf_api_batched * add makefile & max_batch_rows to dbt vars * update dev endpoint | add udf_api_batched to _live * add udf_api_batched to live * add update inner macros to account for max_batch_rows * fix pointer to livequery_dev * add udf_api_batched tests
29 lines
543 B
Makefile
29 lines
543 B
Makefile
SHELL := /bin/bash
|
|
|
|
dbt-console:
|
|
docker-compose run dbt_console
|
|
|
|
.PHONY: dbt-console
|
|
|
|
rm_logs:
|
|
@if [ -d logs ]; then \
|
|
rm -r logs 2>/dev/null || echo "Warning: Could not remove logs directory"; \
|
|
else \
|
|
echo "Logs directory does not exist"; \
|
|
fi
|
|
|
|
|
|
deploy_core: rm_logs
|
|
dbt run --select livequery_models.deploy.core.live \
|
|
--vars '{UPDATE_UDFS_AND_SPS: true}' \
|
|
--profiles-dir ~/.dbt \
|
|
--profile livequery \
|
|
--target dev
|
|
|
|
test_core: rm_logs
|
|
dbt test --select live \
|
|
--profiles-dir ~/.dbt \
|
|
--profile livequery \
|
|
--target dev
|
|
|