#include <sqlpp/bindings/lua/not_predicate.hpp>
#include <luabind/luabind.hpp>
#include <sqlpp/queries/not_predicate.hpp>
namespace sqlpp{
namespace bindings{
namespace lua{
lua_State* lua_sqlppopen_not_predicate(lua_State* L)
{
using namespace luabind;
using namespace ::sqlpp::queries;
module(L, SQLPP_MODULE_NAME)
[
class_<
not_predicate,
query_predicate,
not_predicate_shared_ptr
>("not_predicate")
.def("get_where", ¬_predicate::get_where)
.property("predicate", ¬_predicate::get_predicate, ¬_predicate::set_predicate)
];
module(L, SQLPP_MODULE_NAME)
[
def("not", &queries::not, shared_ptr_policy( _1 ))
];
return L;
};
}; // lua
}; // bindings
}; // sqlpp