Skip to main content
Glama
content_hash.rs848 B
use bytes::BytesMut; use postgres_types::ToSql; use crate::create_xxhash_type; create_xxhash_type!(ContentHash); impl ToSql for ContentHash { fn to_sql( &self, ty: &postgres_types::Type, out: &mut BytesMut, ) -> Result<postgres_types::IsNull, Box<dyn std::error::Error + Sync + Send>> where Self: Sized, { let self_string = self.to_string(); self_string.to_sql(ty, out) } fn accepts(ty: &postgres_types::Type) -> bool where Self: Sized, { String::accepts(ty) } fn to_sql_checked( &self, ty: &postgres_types::Type, out: &mut BytesMut, ) -> Result<postgres_types::IsNull, Box<dyn std::error::Error + Sync + Send>> { let self_string = self.to_string(); self_string.to_sql_checked(ty, out) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server