mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Added free function versions of select_column_list and from
This commit is contained in:
parent
e2a7cfa252
commit
6677266bf5
@ -220,6 +220,11 @@ namespace sqlpp
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename... T>
|
||||||
|
auto from(T&&... t) -> decltype(statement_t<void, no_from_t>().from(std::forward<T>(t)...))
|
||||||
|
{
|
||||||
|
return statement_t<void, no_from_t>().from(std::forward<T>(t)...);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -420,6 +420,11 @@ namespace sqlpp
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename... T>
|
||||||
|
auto select_columns(T&&... t) -> decltype(statement_t<void, no_select_column_list_t>().columns(std::forward<T>(t)...))
|
||||||
|
{
|
||||||
|
return statement_t<void, no_select_column_list_t>().columns(std::forward<T>(t)...);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user