Expand description
Elicitation-enabled sqlx type wrappers.
Provides newtypes for sqlx types with [JsonSchema], MCP reflect methods,
runtime database tools, and fragment tools for sqlx compile-time macros.
Re-exports§
pub use drivers::SqlxMySqlPlugin;pub use drivers::SqlxPgPlugin;pub use drivers::SqlxSqlitePlugin;pub use fragments::MigrateParams;pub use fragments::QueryAsParams;pub use fragments::QueryParams;pub use fragments::QueryScalarParams;pub use workflow::ConnectedAndExecuted;pub use workflow::DbConnected;pub use workflow::FullCommit;pub use workflow::QueryExecuted;pub use workflow::RowsFetched;pub use workflow::SqlxWorkflowPlugin;pub use workflow::TransactionCommitted;pub use workflow::TransactionOpen;pub use workflow::TransactionRolledBack;pub use workflow::connected_and_executed;pub use workflow::full_commit;
Modules§
- drivers
- Driver-specific pool and transaction plugins for sqlx.
- fragments
- Fragment tools for sqlx compile-time macros.
- workflow
SqlxWorkflowPlugin— phrase-level SQL tool compositions with verified contracts.
Structs§
- AnyColumn
- Elicitation-enabled wrapper around
sqlx_core::any::AnyColumn. - AnyQuery
Result - Elicitation-enabled wrapper around
sqlx::any::AnyQueryResult. - AnyRow
- Elicitation-enabled wrapper around
sqlx::any::AnyRow. - AnyType
Info - Elicitation-enabled wrapper around
sqlx::any::AnyTypeInfo. - Migrate
Fragment Emitted - Proposition: a
sqlx::migrate!(path).run(&pool).await?source fragment was emitted. - Query
AsFragment Emitted - Proposition: a
sqlx::query_as!(Type, sql, params…)source fragment was emitted. - Query
Fragment Emitted - Proposition: a
sqlx::query!(sql, params…)source fragment was emitted. - Query
Result Data - Serializable snapshot of a query execution result.
- Query
Scalar Fragment Emitted - Proposition: a
sqlx::query_scalar!(sql, params…)source fragment was emitted. - Sqlx
Context - Holds a shared
AnyPoolfor database tool calls. - Sqlx
Error - Elicitation-enabled wrapper around
sqlx::Error. - Sqlx
Frag Plugin - MCP plugin exposing sqlx fragment tools.
- Sqlx
Plugin - MCP plugin for sqlx database operations.
- ToSqlx
Args Factory - Tools for types implementing
crate::ToSqlxArgs
Traits§
- ToSqlx
Args - Convert
selfinto a flat list of positional SQL argument values.
Functions§
- connect
- Connects to a database and produces a
SqlxContext.