MCPcopy Create free account
hub / github.com/chatmail/core / exists

Method exists

src/sql.rs:417–420  ·  view source on GitHub ↗

Used for executing `SELECT COUNT` statements only. Returns `true`, if the count is at least one, `false` otherwise.

(&self, sql: &str, params: impl rusqlite::Params + Send)

Source from the content-addressed store, hash-verified

415 /// Used for executing `SELECT COUNT` statements only. Returns `true`, if the count is at least
416 /// one, `false` otherwise.
417 pub async fn exists(&self, sql: &str, params: impl rusqlite::Params + Send) -> Result<bool> {
418 let count = self.count(sql, params).await?;
419 Ok(count > 0)
420 }
421
422 /// Execute a query which is expected to return one row.
423 pub async fn query_row<T, F>(

Callers 15

write_dict_to_dirFunction · 0.45
get_pathMethod · 0.45
set_avatarMethod · 0.45
set_profile_imageMethod · 0.45
set_fileMethod · 0.45
local_build_flagsFunction · 0.45
test_cache_writingMethod · 0.45
test_message_imageMethod · 0.45
test_message_fileMethod · 0.45

Calls 1

countMethod · 0.80