Turned remove into a generic statement

This commit is contained in:
rbock
2014-06-03 09:12:27 +02:00
parent 8d16b6ab2d
commit c866f31ea5
7 changed files with 100 additions and 289 deletions

View File

@@ -7,8 +7,8 @@ macro (build_and_run arg)
endmacro ()
#build_and_run(InterpretTest)
build_and_run(InsertTest)
#build_and_run(RemoveTest)
#build_and_run(InsertTest)
build_and_run(RemoveTest)
#build_and_run(UpdateTest)
#build_and_run(SelectTest)
#build_and_run(SelectTypeTest)

View File

@@ -60,8 +60,8 @@ int main()
serialize(remove_from(t).where(t.beta != "transparent"), printer).str();
serialize(remove_from(t).using_(t), printer).str();
auto r = dynamic_remove_from(db, t).dynamic_using().dynamic_where();
r.add_using(t);
r.add_where(t.beta != "transparent");
r.using_.add(t);
r.where.add(t.beta != "transparent");
serialize(r, printer).str();
db(r);