test(versions): ingest linking, listings, endpoints, tag binding, lifecycle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
080a75c336
commit
8b7c517a17
3 files changed
+888
No files matched your search
@@ -307,6 +307,14 @@ impl SqliteFavoriteDao {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
impl SqliteFavoriteDao {
|
||||
/// Test-only constructor sharing an already-wrapped connection.
|
||||
pub fn from_shared(connection: Arc<Mutex<SqliteConnection>>) -> Self {
|
||||
SqliteFavoriteDao { connection }
|
||||
}
|
||||
}
|
||||
|
||||
impl FavoriteDao for SqliteFavoriteDao {
|
||||
fn add_favorite(&mut self, user_id: i32, favorite_path: &str) -> Result<usize, DbError> {
|
||||
use schema::favorites::dsl::*;
|
||||
|
||||
Reference in new issue
Block a user