hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB69d4295Ahmet Kaan Gümüş2 months ago536 commits
| 1 | //! The `solution_image` table: the reads behind the solution photo |
| 2 | //! endpoints. One row per solution at most (`solution` is the primary key); |
| 3 | //! the writes ride the solution's own transactions in |
| 4 | //! [`crate::db::solution`] (`set_image`/`clear_image`/`delete`), where the |
| 5 | //! replaced-blob accounting lives. The row's pure half lives in |
| 6 | //! [`crate::domain::solution_image`]; the blob bytes stay the web layer's. |
| 7 | |
| 8 | use crateDatabase; |
| 9 | use crateFileContentType; |
| 10 | use crateSolutionId; |
| 11 | use crateSolutionImage; |
| 12 | use crateAppError; |
| 13 | |
| 14 | /// The solution's photo row, if it carries one — the blob-serving read. |
| 15 | pub async |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// The photo rows of several solutions in one query — for bucketing onto a |
| 29 | /// listing's *page* (one image per solution at most, so a page of `n` |
| 30 | /// solutions reads at most `n` rows). |
| 31 | pub async |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 |