def test():
	dbcli = getCliInstance()
	# dbcli.insertDomain('jaysonhwang.com')
	# dbcli.insertRuleset('test','jaysonhwang.com')
	print dbcli.robotsrulesetOfDomain('www.zol.com')
	print dbcli.robotsrulesetOfDomain('jayson.com')
	dbcli.showAll()
	dbcli.close()
def __init__(self, config_d, path=None, resolver=None):
        super().__init__(path=path, resolver=resolver)
        self._collection = {}
        for key, value in config_d.items():
            self._collection[key] = self._from_python(key, value)