mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-06 05:00:37 -06:00
Added schema qualified tables`
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <sqlpp11/schema.h>
|
||||
#include <sqlpp11/serializer_context.h>
|
||||
#include <sqlpp11/connection.h>
|
||||
|
||||
@@ -245,6 +246,12 @@ struct MockDbT: public sqlpp::connection
|
||||
return {};
|
||||
}
|
||||
|
||||
auto attach(std::string name)
|
||||
-> ::sqlpp::schema_t
|
||||
{
|
||||
return {name};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
using MockDb = MockDbT<false>;
|
||||
|
||||
Reference in New Issue
Block a user