25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Pageant not found")]
NotFound,
#[error("Buffer overflow")]
Overflow,
#[error("No response from Pageant")]
NoResponse,
#[error("Invalid Cookie")]
InvalidCookie,
#[error("NamedPipe keeps returning Busy")]
PipeBusy,
#[error("Invalid Username")]
InvalidUsername,
#[cfg(windows)]
#[error(transparent)]
WindowsError(#[from] crate::windows::core::Error),
#[error(transparent)]
IoError(#[from] std::io::Error),
#[error("Multiple Errors")]
Multiple(Vec<Self>),
}
impl Error {
#[cfg(windows)]
pub(crate) fn from_win32() -> Self {
#[cfg(target_vendor = "win7")]
let error = crate::windows::core::Error::from_win32();
#[cfg(not(target_vendor = "win7"))]
let error = crate::windows::core::Error::from_thread();
Self::WindowsError(error)
}
}