diff --git a/database_api/api.h b/database_api/api.h index 4eeca1b3..0e8901d9 100644 --- a/database_api/api.h +++ b/database_api/api.h @@ -33,6 +33,8 @@ namespace sqlpp { + namespace connector_name + { class result { public: @@ -53,6 +55,37 @@ namespace sqlpp class connection: public sqlpp::connection { public: + // A bunch of flags telling sqlpp11 which feature is support and which isn't + + // join types + static constexpr bool _supports_inner_join = true; + static constexpr bool _supports_outer_join = true; + static constexpr bool _supports_left_outer_join = true; + static constexpr bool _supports_right_outer_join = true; + + // functions + static constexpr bool _supports_avg = true; + static constexpr bool _supports_count = true; + static constexpr bool _supports_exists = true; + static constexpr bool _supports_like = true; + static constexpr bool _supports_in = true; + static constexpr bool _supports_max = true; + static constexpr bool _supports_min = true; + static constexpr bool _supports_not_in = true; + static constexpr bool _supports_sum = true; + + // select + static constexpr bool _supports_group_by = true; + static constexpr bool _supports_having = true; + static constexpr bool _supports_limit = true; + static constexpr bool _supports_order_by = true; + static constexpr bool _supports_select_as_table = true; + + static constexpr bool _supports_some = true; + static constexpr bool _supports_any = true; + static constexpr bool _use_concat_operator = false; + static constexpr bool _use_concat_function = true; + connection(/*whatever arguments you need*/); connection(const connection&) = delete; connection(connection&&) = delete;