SAD to clone the GitHub repository
flowchart LR
%% Component
github[GitHub repository]
python -m pip install $(hatch dep show requirements) |
/* | |
Context | |
------- | |
In some case, it's required to build `test_*` or `fake_*` table in production branch of MySQL for testing purpose. | |
And our production branch link with streaming into BigQuery by using Datastream | |
Overvview | |
--------- | |
/* | |
Adapter: BigQuery | |
Type: Dataset Generator | |
Description: Create an sample of Quote (OHLCV) in financial market | |
Author: @bao.truong | |
*/ | |
WITH timelapse AS ( | |
SELECT | |
dat_range AS `date` |
# Copy from https://www.baeldung.com/linux/safely-exit-scripts | |
safe_exit () { | |
return 2> /dev/null; exit | |
} |
# Get idea on: https://stackoverflow.com/a/18434831 | |
case "$OSTYPE" in | |
msys*) | |
echo "OS: Window" | |
export PY_CMD=python | |
export ACTIVATE_DIR=Scripts | |
;; | |
linux*) | |
echo "OS: Linux" | |
export PY_CMD=/usr/local/bin/python3.9 |