1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # AgentSQL - SQL Backend Implementation for AgentDB
//!
//! AgentSQL provides SQL-based implementations of the AgentDB trait,
//! supporting SQLite, PostgreSQL, and MySQL backends via SQLx.
//!
//! ## Backends
//!
//! - **SQLite**: Embedded, single-file database (async via sqlx)
//! - **PostgreSQL**: Remote database (async via sqlx)
//! - **MySQL**: Remote database (async via sqlx)
//!
//! ## Example
//!
//! ```rust,ignore
//! use agentsql::{SqlBackend, SqlBackendConfig};
//! use agentdb::AgentDB;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // SQLite
//! let db = SqlBackend::sqlite("agent.db").await?;
//! db.put("key", b"value".into()).await?;
//!
//! // PostgreSQL
//! let db = SqlBackend::postgres("postgres://user:pass@localhost/db").await?;
//!
//! // MySQL
//! let db = SqlBackend::mysql("mysql://user:pass@localhost/db").await?;
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use ;