def console(): utils.setupAdapters(None) provideAdapter(TestMetadata) engine = OCQLEngine() while True: inp = raw_input("ocql>") if inp == "bye" or inp == "quit": break try: print engine.compile(inp).execute() except Exception, e: print "Exception occurred: %s" % str(e)
def setUp(self): setupAdapters(self) setupInterfaces(self) setupCatalog(self) self.engine = OCQLEngine()
def setUp(self): setupAdapters(self) provideAdapter(TestMetadata) self.engine = OCQLEngine()
def setup(test): test.__save_relax = compiler.RELAX_COMPILE compiler.RELAX_COMPILE = True utils.setupAdapters(test)