mirror of https://github.com/usememos/memos.git
- Use direct QueryRowContext with proper sql.ErrNoRows handling - Return nil when reaction is not found (sql.ErrNoRows) - Return error for other database errors - More performant than List approach (single row fetch vs list iteration) |
||
|---|---|---|
| .. | ||
| mysql | ||
| postgres | ||
| sqlite | ||
| db.go | ||