mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-04 09:59:10 -05:00
All statements back to composite design
The point is that even though the CRTP code looked nice, it was too hard to comprehend.
This commit is contained in:
@@ -6,13 +6,13 @@ macro (build_and_run arg)
|
||||
add_test(${arg} ${arg})
|
||||
endmacro ()
|
||||
|
||||
#build_and_run(InterpretTest)
|
||||
build_and_run(InterpretTest)
|
||||
build_and_run(InsertTest)
|
||||
build_and_run(RemoveTest)
|
||||
#build_and_run(UpdateTest)
|
||||
#build_and_run(SelectTest)
|
||||
#build_and_run(FunctionTest)
|
||||
#build_and_run(PreparedTest)
|
||||
build_and_run(UpdateTest)
|
||||
build_and_run(SelectTest)
|
||||
build_and_run(FunctionTest)
|
||||
build_and_run(PreparedTest)
|
||||
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include "Sample.h"
|
||||
#include "MockDb.h"
|
||||
#include "is_regular.h"
|
||||
@@ -31,7 +32,6 @@
|
||||
#include <sqlpp11/functions.h>
|
||||
#include <sqlpp11/connection.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
DbMock db = {};
|
||||
DbMock::_context_t printer(std::cerr);
|
||||
@@ -175,6 +175,8 @@ int main()
|
||||
// Test a select of a single numeric table column
|
||||
{
|
||||
using T = decltype(select(t.alpha).from(t));
|
||||
static_assert(sqlpp::is_select_column_list_t<decltype(T::_column_list)>::value, "Must not be noop");
|
||||
static_assert(sqlpp::is_from_t<decltype(T::_from)>::value, "Must not be noop");
|
||||
static_assert(sqlpp::is_numeric_t<T>::value, "type requirement");
|
||||
static_assert(sqlpp::is_expression_t<T>::value, "type requirement");
|
||||
static_assert(sqlpp::is_named_expression_t<T>::value, "type requirement");
|
||||
|
||||
Reference in New Issue
Block a user