Skip to main content

Crate warmpool_macros

Crate warmpool_macros 

Source
Expand description

Proc-macro companion for warmpool. Depend on warmpool with the macros feature enabled rather than on this crate directly, it’s re-exported from there.

Attribute Macros§

warm_test
Wraps an async test function so it receives a freshly cloned, migrated sqlx::PgPool cloned from a template that’s built once. The test database is dropped after the function returns, whether it panics or succeeds. The template is built once per unique migration set, and reused across every test and every run, so tests run in milliseconds regardless of schema size.