Make ForeignKeyCustomizer pub to tests
This changes allows tests to enable foreign key constraints on the
sqlite connections in tests. In sqlite, foreign key constraints are
disabled by default, so this must be enabled explicitly in tests that
are making assertions related to these constraints.
@@ -23,8 +23,10 @@ pub mod sqlite;
use std::str::FromStr;
-#[cfg(feature = "sqlite")]
+#[cfg(all(feature = "sqlite", not(test)))]
use self::sqlite::ForeignKeyCustomizer;
+#[cfg(all(feature = "sqlite", test))]
+pub use self::sqlite::ForeignKeyCustomizer;
#[cfg(feature = "diesel")]
use diesel::r2d2::{ConnectionManager, Pool};
