hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! Course-note-file workflows: the attachment paths the course-notes surface |
| 2 | //! drives. The queries live in [`crate::db::course_note_file`]; blob |
| 3 | //! unlinking and the AI re-index stay in the web layer. |
| 4 | |
| 5 | use crateDatabase; |
| 6 | use cratecourse_note_file; |
| 7 | use crateCourseNoteId; |
| 8 | use crate; |
| 9 | use crateAppError; |
| 10 | |
| 11 | /// Persist a row assembled by [`CourseNoteFile::new`]; refuses with a |
| 12 | /// conflict once the note holds its cap. |
| 13 | pub async |
| 14 | |
| 15 | |
| 16 | |
| 17 | /// Read a file's row by id alone — the AI bridge reaches the note *through* |
| 18 | /// the file, so no note scoping happens here. |
| 19 | pub async |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | /// Read a file's row only if it belongs to `note`. |
| 27 | pub async |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | pub async |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | /// Delete the row and hand its slot back in the same transaction; the |
| 45 | /// returned row is exactly whose blob the caller may unlink. |
| 46 | pub async |
| 47 | |
| 48 |