Exemplo n.º 1
0
static int simpleclient_connect_lua(lua_State* L) {
	SimpleClient* mc = (SimpleClient*)lua_topointer(L, -3);
	const char* ip = lua_tostring(L, -2);
	const char* port = lua_tostring(L, -1);
	mc->connect(ip, port);
	return 0;
}
Exemplo n.º 2
0
int main(int argc, char**)
{
    using example::SimpleClient;
    
    SimpleClient client;
    client.connect("127.0.0.1");
    client.createSchema();
    client.loadData();
    client.querySchema();
    client.updateSchema();
    client.dropSchema("simplex");
    client.close();
    return 0;
}