mirror of
https://github.com/FlipsideCrypto/crosschain-models.git
synced 2026-02-06 09:06:49 +00:00
* quantum for cg metadata * test query * Update revision for fsc-utils package to "STREAM-844-RC1" * Update revision for fsc-utils package to "foobar" * quantum structures * spacing * merge conflicts \ * v1.22 * remove limit --------- Co-authored-by: Julius Remigio <14811322+juls858@users.noreply.github.com>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
SHELL := /bin/bash
|
|
|
|
# set default target
|
|
DBT_TARGET ?= dev
|
|
AWS_LAMBDA_ROLE ?= aws_lambda_crosschain_api_dev
|
|
INVOKE_STREAMS ?= True
|
|
|
|
dbt-console:
|
|
docker-compose run dbt_console
|
|
|
|
.PHONY: dbt-console
|
|
|
|
sl-api-integrations:
|
|
dbt run-operation create_aws_crosschain_api \
|
|
--profile crosschain \
|
|
--target $(DBT_TARGET) \
|
|
--profiles-dir ~/.dbt/
|
|
|
|
udfs:
|
|
dbt run-operation fsc_utils.create_udf_bulk_rest_api_v2 \
|
|
--vars '{"UPDATE_UDFS_AND_SPS":True}' \
|
|
--profile crosschain \
|
|
--target $(DBT_TARGET) \
|
|
--profiles-dir ~/.dbt/
|
|
|
|
streamline-v2: sl-api-integrations udfs
|
|
|
|
prices_history:
|
|
dbt run \
|
|
--vars '{"STREAMLINE_INVOKE_STREAMS": $(INVOKE_STREAMS), "STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES": True}' \
|
|
-m "crosschain_models,tag:streamline_prices_complete" "crosschain_models,tag:streamline_prices_history" \
|
|
--profile crosschain \
|
|
--target $(DBT_TARGET) \
|
|
--profiles-dir ~/.dbt
|
|
|
|
ohlc_realtime:
|
|
dbt run \
|
|
--vars '{"STREAMLINE_INVOKE_STREAMS": $(INVOKE_STREAMS), "STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES": True}' \
|
|
-m "crosschain_models,tag:ohlc_realtime_v2" \
|
|
--profile crosschain \
|
|
--target $(DBT_TARGET) \
|
|
--profiles-dir ~/.dbt
|