hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! Note-file workflows: the attachment paths the notes surface drives. The |
| 2 | //! queries live in [`crate::db::note_file`]; blob unlinking stays in the web |
| 3 | //! layer. |
| 4 | |
| 5 | use crateDatabase; |
| 6 | use cratenote_file; |
| 7 | use crateNoteId; |
| 8 | use crate; |
| 9 | use crateAppError; |
| 10 | |
| 11 | /// Persist a row assembled by [`NoteFile::new`]; refuses with a conflict once |
| 12 | /// the note holds its cap. |
| 13 | pub async |
| 14 | |
| 15 | |
| 16 | |
| 17 | /// Read a file's row only if it belongs to `note`. |
| 18 | pub async |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | pub async |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | /// Delete the row and hand its slot back in the same transaction; the returned |
| 36 | /// row is exactly whose blob the caller may unlink. |
| 37 | pub async |
| 38 | |
| 39 |