Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
    def setUp(self):
        setupAdapters(self)
        setupInterfaces(self)
        setupCatalog(self)

        self.engine = OCQLEngine()
Ejemplo n.º 4
0
    def setUp(self):
        setupAdapters(self)
        setupInterfaces(self)
        setupCatalog(self)

        self.engine = OCQLEngine()
Ejemplo n.º 5
0
    def setUp(self):
        setupAdapters(self)
        provideAdapter(TestMetadata)

        self.engine = OCQLEngine()
Ejemplo n.º 6
0
def setup(test):
    test.__save_relax = compiler.RELAX_COMPILE
    compiler.RELAX_COMPILE = True

    utils.setupAdapters(test)