Commit 564d815
authored
fix!: Correct database resolver logic and general refactor (#204)
* Initial refactor for types
* Refactored attachment resolver function into its own class and added tests
* Initial refactor for database functions, added tests
* Refactored config var functions, added tests
* Refactored mocked data to fixture files
* Initial refactor for bastion functions
* Deps and index.ts updated for refactors
* Refactored database functions into a class. Finished adding tests.
* Replaced nyc with c8, because nyc doesn't support ESM
* Adding tests for parsePostgresConnectionString function
* Adding initial tests for bastion functions.
* Refactored psql functions into class PsqlService to ease testability.
* Added tests for getPsqlConfigs bastion function.
* Adding initial tests for PsqlService.execQuery function (no tunnel).
* Lots of ESlint errors and warnings fixed.
* Added tests for sshTunnel bastion function.
* Added final tests for PsqlService execQuery (tunnel required).1 parent 7477358 commit 564d815
File tree
25 files changed
+3432
-1908
lines changed- src
- errors
- types
- errors
- pg
- utils
- addons
- pg
- test
- fixtures
- unit/utils
- addons
- pg
25 files changed
+3432
-1908
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
| 6 | + | |
3 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments