void MojoDatabase::DeleteItems (Signal::SlotRef slot, const MojObject::ObjectVec& array)
{
	MojErr err = m_dbClient.del(slot, array.begin(), array.end(), MojDb::FlagPurge);
	ErrorToException(err);
}
void MojoDatabase::AddItems(Signal::SlotRef slot, const MojObject::ObjectVec& array)
{
	MojErr err = m_dbClient.put(slot, array.begin(), array.end());
	ErrorToException(err);
}
void MojoDatabase::UpdateItemRevisions(Signal::SlotRef slot, const MojObject::ObjectVec& array)
{
	MojErr err = m_dbClient.merge(slot, array.begin(), array.end());
	ErrorToException(err);
}
void MojoDatabase::GetByIds(Signal::SlotRef slot, const MojObject::ObjectVec& ids)
{
	MojErr err = m_dbClient.get(slot, ids.begin(), ids.end());
	ErrorToException(err);
}