Commit 850d2fa
authored
ntf server: PostgreSQL database storage (#1519)
* ntf server: PostgreSQL database storage
* ntf server: import/export stubs
* ntf server postgres db functions
* some notifications tests pass
* notifications tests pass
* import/export notification store logs
* fix ntf server CLI
* log in parralel
* update subscription statuses using executeMany
* fix import/export
* refactor
* fix queries
* prohibit token_id and subscription_id updates, dont update tokens and subscriptions on conflict, improve server insertion, remove duplicate tokens for import, remove subscriptions without tokens for import
* comment
* remame
* increase test delay1 parent ec5a604 commit 850d2fa
File tree
29 files changed
+1809
-738
lines changed- src/Simplex/Messaging
- Client
- Encoding
- Notifications
- Server
- Push
- Store
- Server
- Env
- Main
- QueueStore
- tests
- AgentTests
29 files changed
+1809
-738
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | 219 | | |
229 | 220 | | |
230 | 221 | | |
| |||
257 | 248 | | |
258 | 249 | | |
259 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
| |||
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
| 346 | + | |
| 347 | + | |
343 | 348 | | |
344 | 349 | | |
345 | 350 | | |
| |||
352 | 357 | | |
353 | 358 | | |
354 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
355 | 364 | | |
356 | 365 | | |
357 | 366 | | |
| |||
444 | 453 | | |
445 | 454 | | |
446 | 455 | | |
447 | | - | |
448 | 456 | | |
449 | 457 | | |
450 | 458 | | |
| |||
460 | 468 | | |
461 | 469 | | |
462 | 470 | | |
463 | | - | |
464 | | - | |
465 | 471 | | |
466 | 472 | | |
467 | 473 | | |
| |||
484 | 490 | | |
485 | 491 | | |
486 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
487 | 496 | | |
488 | 497 | | |
489 | 498 | | |
| |||
537 | 546 | | |
538 | 547 | | |
539 | 548 | | |
| 549 | + | |
| 550 | + | |
540 | 551 | | |
541 | 552 | | |
542 | 553 | | |
| |||
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
553 | | - | |
554 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
415 | 419 | | |
416 | 420 | | |
417 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
418 | 426 | | |
419 | 427 | | |
420 | 428 | | |
421 | 429 | | |
422 | | - | |
| 430 | + | |
423 | 431 | | |
424 | 432 | | |
425 | 433 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| 520 | + | |
520 | 521 | | |
| 522 | + | |
521 | 523 | | |
| 524 | + | |
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
| |||
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
537 | 551 | | |
538 | 552 | | |
539 | 553 | | |
| |||
0 commit comments