auto_method!(get_entry_by_id()@get_entry_from_row-> "SELECT * FROM entries WHERE id = $1"--name="journal entry"--returns=JournalEntry--cache-key-tmpl="atto.entry:{}");
/// Create a new journal entry in the database.
///
/// # Arguments
/// * `data` - a mock [`JournalEntry`] object to insert
auto_method!(delete_entry()@get_entry_by_id:MANAGE_JOURNAL_ENTRIES-> "DELETE FROM entries WHERE id = $1"--cache-key-tmpl="atto.entry:{}");
auto_method!(update_entry_content(String)@get_entry_by_id:MANAGE_JOURNAL_ENTRIES-> "UPDATE entries SET content = $1 WHERE id = $2"--cache-key-tmpl="atto.entry:{}");
auto_method!(update_entry_context(JournalEntryContext)@get_entry_by_id:MANAGE_JOURNAL_ENTRIES-> "UPDATE entries SET context = $1 WHERE id = $2"--serde--cache-key-tmpl="atto.entry:{}");
auto_method!(incr_entry_likes()-> "UPDATE entries SET likes = likes + 1 WHERE id = $1"--cache-key-tmpl="atto.entry:{}"--reactions-key-tmpl="atto.entry.likes:{}"--incr);
auto_method!(incr_entry_dislikes()-> "UPDATE entries SET likes = dislikes + 1 WHERE id = $1"--cache-key-tmpl="atto.entry:{}"--reactions-key-tmpl="atto.entry.dislikes:{}"--incr);
auto_method!(decr_entry_likes()-> "UPDATE entries SET likes = likes - 1 WHERE id = $1"--cache-key-tmpl="atto.entry:{}"--reactions-key-tmpl="atto.entry.likes:{}"--decr);
auto_method!(decr_entry_dislikes()-> "UPDATE entries SET likes = dislikes - 1 WHERE id = $1"--cache-key-tmpl="atto.entry:{}"--reactions-key-tmpl="atto.entry.dislikes:{}"--decr);