#![cfg(all(
feature = "outbox",
feature = "inbox",
feature = "chrono",
feature = "json",
feature = "testing",
feature = "postgres",
feature = "mysql",
feature = "sqlite"
))]
use std::env;
use crate::live;
use crate::threads::{pool, probe};
mod manual;
mod records;
mod registry;
mod stand;
mod threads;
mod tracked;
mod transactional;
const SWITCH: &str = "RUSTSTREAM_SQLX_OUTBOX";
fn tracking_on() -> bool {
if env::var(SWITCH).as_deref() == Ok("on") {
return true;
}
assert!(
env::var(live::REQUIRE_LIVE).map_or(true, |value| value.is_empty()),
"{} is set, so the outbox suite must run, but {SWITCH} is not `on`",
live::REQUIRE_LIVE,
);
eprintln!("{SWITCH} is not `on`; skipping the outbox suite");
false
}