-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac57618
commit 0382de6
Showing
6 changed files
with
10 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
/* @name markCdeDatumProcessed */ | ||
INSERT INTO cde_tracking(block_height, datum_count, done) | ||
VALUES (:block_height!, :datum_count, FALSE) | ||
ON CONFLICT (block_height) | ||
DO UPDATE SET | ||
block_height = EXCLUDED.block_height, | ||
datum_count = EXCLUDED.datum_count, | ||
done = EXCLUDED.done; | ||
|
||
/* @name markCdeBlockheightProcessed */ | ||
UPDATE cde_tracking | ||
SET | ||
done = TRUE | ||
WHERE block_height = :block_height!; | ||
|
||
/* @name getSpecificCdeBlockheight */ | ||
SELECT * FROM cde_tracking | ||
WHERE block_height = :block_height!; | ||
INSERT INTO cde_tracking(block_height) | ||
VALUES (:block_height!); | ||
|
||
/* @name getLatestProcessedCdeBlockheight */ | ||
SELECT * FROM cde_tracking | ||
WHERE done IS TRUE | ||
ORDER BY block_height DESC | ||
LIMIT 1; |