Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

refactor(DB): replace rbatis with sqlx #424

Merged
merged 90 commits into from Aug 26, 2022

Conversation

EthanYuan
Copy link
Collaborator

@EthanYuan EthanYuan commented Jun 7, 2022

What this PR does / why we need it:

replace rbatis with sqlx

  • replace rbatis with sqlx v0.6
  • use AnyPool of sqlx, this supports both Postgres and Sqlite(unit test)
  • remove unused tracing crate: resolve compilation conflicts with sqlx v0.6.0
  • limit the maximum value of the field limit in PaginationRequest to u16::MAX(65535)
  • remove config filed db_log_level

Which issue(s) this PR fixes:

Fixes #

Which docs this PR relation:

Ref #

Which toolchain this PR adaption:

No Breaking Change

Special notes for your reviewer:

@EthanYuan EthanYuan requested a review from quake June 7, 2022 10:01
@EthanYuan EthanYuan force-pushed the dev-0.4-db branch 2 times, most recently from 53d54a0 to b3ad404 Compare June 13, 2022 11:58
@EthanYuan EthanYuan force-pushed the dev-0.4-db branch 2 times, most recently from 7adcd6d to 97e2082 Compare June 20, 2022 10:29
@EthanYuan EthanYuan marked this pull request as ready for review July 29, 2022 05:49
core/storage/src/relational/fetch.rs Outdated Show resolved Hide resolved
core/storage/src/relational/mod.rs Outdated Show resolved Hide resolved
core/storage/src/relational/tests/fetch_mod_test.rs Outdated Show resolved Hide resolved
core/storage/src/relational/fetch.rs Outdated Show resolved Hide resolved
core/storage/src/relational/insert.rs Outdated Show resolved Hide resolved
@EthanYuan EthanYuan requested a review from quake August 12, 2022 03:15
@EthanYuan EthanYuan merged commit e1896e4 into nervosnetwork:dev-0.4 Aug 26, 2022
@EthanYuan EthanYuan deleted the dev-0.4-db branch August 29, 2022 03:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants