Esempio n. 1
0
 def reduce_CreateViewRegularStmt(self, *kids):
     r"""%reduce \
         VIEW ShortNodeName CreateViewSingleSDLCommandBlock \
     """
     self.val = qlast.CreateView(
         name=kids[1].val,
         commands=kids[2].val,
     )
Esempio n. 2
0
File: ddl.py Progetto: alipqb/edgedb
 def reduce_CreateViewRegularStmt(self, *kids):
     r"""%reduce \
         CREATE VIEW NodeName \
         CreateViewCommandsBlock \
     """
     self.val = qlast.CreateView(
         name=kids[2].val,
         commands=kids[3].val,
     )
Esempio n. 3
0
 def reduce_CreateViewShortStmt(self, *kids):
     r"""%reduce \
         VIEW ShortNodeName ASSIGN Expr \
     """
     self.val = qlast.CreateView(name=kids[1].val,
                                 commands=[
                                     qlast.SetField(
                                         name=qlast.ObjectRef(name='expr'),
                                         value=kids[3].val,
                                     )
                                 ])