Commit 05adb56
authored
PostreSQL backend support (#62)
[GH-53]
Changes:
- Add the implementation of the Storage trait for a PostgreSQL DB
backend using SQLx.
- Add a script to start a development container with a PosgreSQL DB.
- Add prepared SQL statements for the offline checks.
- Add initial DB schema as a migration
- Updated deps
* Add unit tests for the PostgreSQL Storage implementation
[GH-53]
- Add a reusable module that generates Logs fixtures
- Adds unit tests for all the methods of the trait Storage
* Extend CI script to support the new DB backend (#53)
* Otimised PosgreSQL backend to use batched inserts (#53)
* Run tests for all features in the CI (#53)
* Insert db version into the meta table (#53)
* Make all DB backends available at runtime (#53)
* Fix for test latest_block (#53)
* Use BYTEA for all the addresses stored in the DB (#53)
* Add docs for the new DB backend (#53)
* Migrate the DB before running tests in CI
* Use prepared SQL queries to build the container
* Automatic detection of the chosen DB backend based on the connection path (#53)
* Update DATABASE_URL for testing environment
* Update docs after CLI change (#53)
* Error when DB content is wrong (#62)1 parent 904cbf6 commit 05adb56
File tree
30 files changed
+3072
-78
lines changed- .github/workflows
- .sqlx
- docs/quixote
- docs/pages
- migrations
- script
- src
- storage
30 files changed
+3072
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
73 | 98 | | |
| 99 | + | |
| 100 | + | |
74 | 101 | | |
75 | 102 | | |
76 | 103 | | |
77 | 104 | | |
78 | | - | |
| 105 | + | |
Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments