Skip to main content

Crate elicit_sqlx

Crate elicit_sqlx 

Source
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.
AnyQueryResult
Elicitation-enabled wrapper around sqlx::any::AnyQueryResult.
AnyRow
Elicitation-enabled wrapper around sqlx::any::AnyRow.
AnyTypeInfo
Elicitation-enabled wrapper around sqlx::any::AnyTypeInfo.
MigrateFragmentEmitted
Proposition: a sqlx::migrate!(path).run(&pool).await? source fragment was emitted.
QueryAsFragmentEmitted
Proposition: a sqlx::query_as!(Type, sql, params…) source fragment was emitted.
QueryFragmentEmitted
Proposition: a sqlx::query!(sql, params…) source fragment was emitted.
QueryResultData
Serializable snapshot of a query execution result.
QueryScalarFragmentEmitted
Proposition: a sqlx::query_scalar!(sql, params…) source fragment was emitted.
SqlxContext
Holds a shared AnyPool for database tool calls.
SqlxError
Elicitation-enabled wrapper around sqlx::Error.
SqlxFragPlugin
MCP plugin exposing sqlx fragment tools.
SqlxPlugin
MCP plugin for sqlx database operations.
ToSqlxArgsFactory
Tools for types implementing crate::ToSqlxArgs

Traits§

ToSqlxArgs
Convert self into a flat list of positional SQL argument values.

Functions§

connect
Connects to a database and produces a SqlxContext.