44//! and data mapping. It includes support for multiple database backends such as PostgreSQL,
55//! MySQL, and SQL Server, and defines traits and utilities for interacting with these databases.
66
7+ #[ cfg( not( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ) ]
8+ compile_error ! (
9+ "Canyon-SQL requires at least one SQL backend feature: `postgres`, `mysql` or `mssql`."
10+ ) ;
11+
712#[ cfg( feature = "postgres" ) ]
813pub extern crate tokio_postgres;
914
@@ -17,12 +22,20 @@ pub extern crate mysql_async;
1722
1823extern crate core;
1924
25+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2026pub mod canyon;
2127
28+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2229pub mod column;
30+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2331pub mod connection;
32+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2433pub mod mapper;
34+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2535pub mod query;
36+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2637pub mod row;
38+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2739pub mod rows;
40+ #[ cfg( any( feature = "postgres" , feature = "mysql" , feature = "mssql" ) ) ]
2841pub mod transaction;
0 commit comments