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