コード例 #1
0
ファイル: SqlUtil.cs プロジェクト: Sun-Jc/GC-GraphView
 internal static WScalarSubquery GetScalarSubquery(WSelectQueryExpression selectQueryBlock)
 {
     return(new WScalarSubquery()
     {
         SubQueryExpr = selectQueryBlock
     });
 }
コード例 #2
0
ファイル: SqlUtil.cs プロジェクト: Sun-Jc/GC-GraphView
 internal static WBinaryQueryExpression GetBinaryQueryExpr(WSelectQueryExpression firstQueryExpr,
                                                           WSelectQueryExpression secondQueryExpr)
 {
     return(new WBinaryQueryExpression()
     {
         FirstQueryExpr = firstQueryExpr,
         SecondQueryExpr = secondQueryExpr,
         All = true,
         BinaryQueryExprType = BinaryQueryExpressionType.Union,
     });
 }
コード例 #3
0
 public void Invoke(string schema, WSelectQueryExpression selectQuery,
                    out List <string> tableObjList,
                    out List <Tuple <string, List <Tuple <string, string> > > > propertymapping)
 {
     _defaultMerge    = false;
     _noAttributes    = false;
     _schema          = schema;
     _tableObjList    = new List <string>();
     _propertymapping = new List <Tuple <string, List <Tuple <string, string> > > >();
     selectQuery.Accept(this);
     tableObjList    = _tableObjList;
     propertymapping = _defaultMerge ? null : _propertymapping;
 }
コード例 #4
0
ファイル: CreateViewVisitor.cs プロジェクト: Coword/GraphView
 public void Invoke(string schema, WSelectQueryExpression selectStatement, out List<Tuple<string, string>> edges, out List<string> edgeAttribute, out List<Tuple<string, List<Tuple<string, string, string>>>> attributeMapping)
 {
     _defaultMerge = false;
     _noAttributes = false;
     _schema = schema;
     _edges = new List<Tuple<string, string>>();
     _edgeAttribute = new List<string>();
     _attributeMapping = new List<Tuple<string, List<Tuple<string, string, string>>>>();
     selectStatement.Accept(this);
     edges = _edges;
     if (_defaultMerge)
     {
         edgeAttribute = null;
         attributeMapping = null;
     }
     else
     {
         edgeAttribute = _edgeAttribute;
         attributeMapping = _attributeMapping;
     }
 }
コード例 #5
0
 public void Invoke(string schema, WSelectQueryExpression selectStatement, out List <Tuple <string, string> > edges, out List <string> edgeAttribute, out List <Tuple <string, List <Tuple <string, string, string> > > > attributeMapping)
 {
     _defaultMerge     = false;
     _noAttributes     = false;
     _schema           = schema;
     _edges            = new List <Tuple <string, string> >();
     _edgeAttribute    = new List <string>();
     _attributeMapping = new List <Tuple <string, List <Tuple <string, string, string> > > >();
     selectStatement.Accept(this);
     edges = _edges;
     if (_defaultMerge)
     {
         edgeAttribute    = null;
         attributeMapping = null;
     }
     else
     {
         edgeAttribute    = _edgeAttribute;
         attributeMapping = _attributeMapping;
     }
 }
コード例 #6
0
 public virtual void Visit(WSelectQueryExpression node)
 {
     node.AcceptChildren(this);
 }
コード例 #7
0
 public virtual void Visit(WSelectQueryExpression node)
 {
     node.AcceptChildren(this);
 }
コード例 #8
0
ファイル: CreateViewVisitor.cs プロジェクト: Coword/GraphView
 public void Invoke(string schema, WSelectQueryExpression selectQuery,
     out List<string> tableObjList,
     out List<Tuple<string, List<Tuple<string, string>>>> propertymapping)
 {
     _defaultMerge = false;
     _noAttributes = false;
     _schema = schema;
     _tableObjList = new List<string>();
     _propertymapping = new List<Tuple<string, List<Tuple<string, string>>>>();
     selectQuery.Accept(this);
     tableObjList = _tableObjList;
     propertymapping = _defaultMerge ? null : _propertymapping;
 }