mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Updated connector API
This commit is contained in:
parent
d3963e04b6
commit
aa5c2c90a6
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
namespace sqlpp
|
namespace sqlpp
|
||||||
{
|
{
|
||||||
|
namespace connector_name
|
||||||
|
{
|
||||||
class result
|
class result
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -53,6 +55,37 @@ namespace sqlpp
|
|||||||
class connection: public sqlpp::connection
|
class connection: public sqlpp::connection
|
||||||
{
|
{
|
||||||
public:
|
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(/*whatever arguments you need*/);
|
||||||
connection(const connection&) = delete;
|
connection(const connection&) = delete;
|
||||||
connection(connection&&) = delete;
|
connection(connection&&) = delete;
|
||||||
|
Loading…
Reference in New Issue
Block a user