import arkInit
arkInit.init()

import coren

class Database(object):
	def __init__(self, apiRoot):
		self.apiRoot = apiRoot
		self.coren = coren.Coren(apiRoot)

	def create(self, entityType, data):
		return self.coren.create(entityType, data)

	def find(self, entityType):
		return self.coren.find(entityType)

	def update(self, entityType, data=None):
		return self.coren.update(entityType, data)

	def remove(self, entityType):
		return self.coren.remove(entityType)

	def execute(self, queryParams, queryOptions):
		return self.coren.execute(queryParams, queryOptions)

import arkInit
arkInit.init()

import coren

class Database(object):
	def __init__(self, apiRoot):
		self.apiRoot = apiRoot
		self.coren = coren.Coren(apiRoot)

	def create(self, entityType, data):
		return self.coren.create(entityType, data)

	def find(self, entityType):
		return self.coren.find(entityType)

	def update(self, entityType, data=None):
		return self.coren.update(entityType, data)

	def remove(self, entityType):
		return self.coren.remove(entityType)

	def empty(self, entityType):
		return self.coren.empty(entityType)

	def findOne(self, entityType):
		return self.coren.findOne(entityType)

	def getID(self, entityType):
		return self.coren.getID(entityType)

	def getIDByName(self, entityType, name):
		return self.coren.getIDByName(self, entityType, name)

	def execute(self, queryParams, queryOptions):
		return self.coren.execute(queryParams, queryOptions)


bring database up to scratch with new coren methods