-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: rename type utils to utils * feat: impl quick indexer poc * feat: initial impl of the db and repo * feat: add batch handling for the quick indexer * fix: sql string not generated correctly - fix issue where attempting to return the bounded sql statement fails as it loses the bind values. Done via passing tx context. Does make it less testable without sqlx. - add debug config for vscode * chore: fix clippy formatting * chore: relax tracing for now to allow easier debug * chore: fix clippy lints * feat: impl batch indexing (#25) * feat: impl batch indexing * chore: fix linting and formatting * fix: propagate rpc error encountered during index * chore: fix formatting * chore: remove redundant utils * chore: fix formatting
- Loading branch information
1 parent
d56ab7a
commit 90f6daa
Showing
22 changed files
with
1,318 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in library 'fossil_headers_db'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--lib", | ||
"--package=fossil_headers_db" | ||
], | ||
"filter": { | ||
"name": "fossil_headers_db", | ||
"kind": "lib" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'fossil_headers_db'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=fossil_headers_db", | ||
"--package=fossil_headers_db" | ||
], | ||
"filter": { | ||
"name": "fossil_headers_db", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'fossil_headers_db'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=fossil_headers_db", | ||
"--package=fossil_headers_db" | ||
], | ||
"filter": { | ||
"name": "fossil_headers_db", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'fossil_indexer'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=fossil_indexer", | ||
"--package=fossil_headers_db" | ||
], | ||
"filter": { | ||
"name": "fossil_indexer", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'fossil_indexer'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=fossil_indexer", | ||
"--package=fossil_headers_db" | ||
], | ||
"filter": { | ||
"name": "fossil_indexer", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Add down migration script here | ||
DROP TABLE IF EXISTS index_metadata; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- Add up migration script here | ||
CREATE TABLE | ||
IF NOT EXISTS index_metadata ( | ||
id INT8 GENERATED ALWAYS AS IDENTITY PRIMARY KEY, | ||
current_latest_block_number BIGINT NOT NULL, | ||
indexing_starting_block_number BIGINT NOT NULL, | ||
is_backfilling BOOLEAN DEFAULT TRUE, | ||
updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP | ||
) |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Add down migration script here | ||
ALTER TABLE index_metadata DROP COLUMN backfilling_block_number; |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Add up migration script here | ||
ALTER TABLE index_metadata ADD COLUMN backfilling_block_number BIGINT; |
Empty file.
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
Oops, something went wrong.