Prevent race conditions

- This is a massive cope, I don't know how to code

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-01-17 17:16:37 +00:00
parent 36ee6030ce
commit 7200447bc5
23 changed files with 510 additions and 311 deletions

View File

@@ -1,5 +1,5 @@
FROM rust
RUN rustup install nightly
RUN rustup component add clippy
RUN rustup component add rustfmt clippy
RUN cargo install cargo-udeps cargo-outdated

View File

@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS qrust.bars (
high Float64,
low Float64,
close Float64,
volume Int64,
volume Float64,
trades Int64,
vwap Float64
)
@@ -31,9 +31,9 @@ ENGINE = ReplacingMergeTree()
PRIMARY KEY (symbol, time)
PARTITION BY toYYYYMM(time);
CREATE TABLE IF NOT EXISTS qrust.bars_validity (
CREATE TABLE IF NOT EXISTS qrust.backfills (
symbol String,
time_last DateTime
time DateTime
)
ENGINE = ReplacingMergeTree()
PRIMARY KEY symbol;