-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sqlx): Use offline mode by default (#1539)
## What ❔ * Introduce new zk command `zk db prepare` * Add sqlx_offline=true to envs * remove build.rs from prover ## Why ❔ It allows us to make build faster and remove dependency from envs ## 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`. Signed-off-by: Danil <deniallugo@gmail.com>
- Loading branch information
1 parent
777ffca
commit af01edd
Showing
6 changed files
with
30 additions
and
67 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
...lib/dal/.sqlx/query-f19c20325298647177a86a3f9c4ae6d629a74f255a31284ce6707d219c9a0510.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...lib/dal/.sqlx/query-f4f400606cd3875ed1be393107dd5509f57ae415719f99c6d523c81c20d2bffb.json
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# In our workspace we intentionally use offline mode in workspace, | ||
# and you have to run `zk db prepare` for regenerating sqlx files | ||
sqlx_offline = true | ||
[database] | ||
# Path to the directory that contains RocksDB with VM state cache. | ||
state_keeper_db_path="./db/main/state_keeper" | ||
backup_count=5 | ||
backup_interval_ms=60000 | ||
state_keeper_db_path = "./db/main/state_keeper" | ||
backup_count = 5 | ||
backup_interval_ms = 60000 | ||
# Amount of open connections to the database. | ||
pool_size=50 | ||
pool_size = 50 | ||
# Postgres statement timeout. Applies only to the replica connection pool | ||
# used by the API servers. | ||
statement_timeout_sec=300 | ||
statement_timeout_sec = 300 | ||
|
||
[database.merkle_tree] | ||
# Path to the directory that contains RocksDB with Merkle tree. | ||
path="./db/main/tree" | ||
path = "./db/main/tree" | ||
# Path to the directory that contains RocksDB backups for Merkle tree. | ||
backup_path="./db/main/backups" | ||
backup_path = "./db/main/backups" |
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 was deleted.
Oops, something went wrong.