-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Separate Prover and Server DAL (#1334)
## What ❔ * New `db_connection` crate, which contains all the main logic for managing `ConnectionPool` and `StorageProcessor` * Prover parts of DAL are moved to `prover_dal` crate * Now we have typed `ConnectionPool`s and `StorageProcessor`s, to use appropriate `ConnectionPool` there are 2 options: `ConnectionPool<Server>`, `ConnectionPool<Prover>` - which will return appropriate `StorageProcessor` with corresponding methods accessible *only* by this connection pool. * `vm_version`, `prover_dal` and part of `protocol_version` types were moved to `basic_types` crate Further steps: * Add migrations for dropping tables that are not needed in databases, done [here](#1436). * Rename Server to Core, StorageProcessor to Connection ## Why ❔ To separate logic of prover and server. To prevent accessing wrong database with one `ConnectionPool`. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`. - [x] Linkcheck has been run via `zk linkcheck`. --------- Co-authored-by: EmilLuta <[email protected]>
- Loading branch information
1 parent
c36be65
commit 103a56b
Showing
282 changed files
with
2,227 additions
and
1,804 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -918,3 +918,5 @@ stateful | |
WIP | ||
oneshot | ||
p2p | ||
StorageProcessor | ||
StorageMarker |
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
Oops, something went wrong.