Forgot to add MySQLResult lua binding
This commit is contained in:
parent
9305053e34
commit
a7b27ef8dd
|
@ -848,17 +848,20 @@ void Application::registerLuaFunctions()
|
|||
g_lua.bindClassMemberFunction<Database>("escapeString", &Database::escapeString);
|
||||
//g_lua.bindClassMemberFunction<Database>("escapeBlob", &Database::escapeBlob); // need to write a cast for this type to work (if needed)
|
||||
|
||||
// DBQuery (not sure if this class will work as a luafunction)
|
||||
/*g_lua.registerClass<DBQuery>();
|
||||
// DBQuery
|
||||
/* (not sure if this class will work as a luafunction)
|
||||
g_lua.registerClass<DBQuery>();
|
||||
g_lua.bindClassStaticFunction<DBQuery>("create", []{ return DBQuery(); });
|
||||
g_lua.bindClassMemberFunction<DBQuery>("append", &DBQuery::append);
|
||||
g_lua.bindClassMemberFunction<DBQuery>("set", &DBQuery::set);*/
|
||||
g_lua.bindClassMemberFunction<DBQuery>("set", &DBQuery::set);
|
||||
*/
|
||||
|
||||
// DBResult
|
||||
g_lua.registerClass<DBResult>();
|
||||
g_lua.bindClassMemberFunction<DBResult>("getDataInt", &DBResult::getDataInt);
|
||||
g_lua.bindClassMemberFunction<DBResult>("getDataLong", &DBResult::getDataLong);
|
||||
g_lua.bindClassMemberFunction<DBResult>("getDataString", &DBResult::getDataString);
|
||||
//g_lua.bindClassMemberFunction<DBResult>("getDataStream", &DBResult::getDataStream); // need to write a cast for this type to work (if needed)
|
||||
g_lua.bindClassMemberFunction<DBResult>("getRowCount", &DBResult::getRowCount);
|
||||
g_lua.bindClassMemberFunction<DBResult>("free", &DBResult::free);
|
||||
g_lua.bindClassMemberFunction<DBResult>("next", &DBResult::next);
|
||||
|
@ -872,5 +875,15 @@ void Application::registerLuaFunctions()
|
|||
g_lua.bindClassMemberFunction<DatabaseMySQL>("commit", &DatabaseMySQL::commit);
|
||||
g_lua.bindClassMemberFunction<DatabaseMySQL>("executeQuery", &DatabaseMySQL::executeQuery);
|
||||
g_lua.bindClassMemberFunction<DatabaseMySQL>("storeQuery", &DatabaseMySQL::storeQuery);
|
||||
|
||||
// MySQLResult
|
||||
g_lua.registerClass<MySQLResult>();
|
||||
g_lua.bindClassMemberFunction<MySQLResult>("getDataInt", &MySQLResult::getDataInt);
|
||||
g_lua.bindClassMemberFunction<MySQLResult>("getDataLong", &MySQLResult::getDataLong);
|
||||
g_lua.bindClassMemberFunction<MySQLResult>("getDataString", &MySQLResult::getDataString);
|
||||
//g_lua.bindClassMemberFunction<MySQLResult>("getDataStream", &MySQLResult::getDataStream); // need to write a cast for this type to work (if needed)
|
||||
g_lua.bindClassMemberFunction<MySQLResult>("getRowCount", &MySQLResult::getRowCount);
|
||||
g_lua.bindClassMemberFunction<MySQLResult>("free", &MySQLResult::free);
|
||||
g_lua.bindClassMemberFunction<MySQLResult>("next", &MySQLResult::next);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <framework/luaengine/luaobject.h>
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <ctime>
|
||||
|
||||
class Database : public LuaObject
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue