예제 #1
0
 public CreateIndexStmt(string indexname,
                        BaseTableRef target, bool unique, List <string> columns, Expr where, string text) : base(text)
 {
     targetref_    = target;
     def_          = new IndexDef();
     def_.name_    = indexname;
     def_.unique_  = unique;
     def_.columns_ = columns;
     def_.table_   = target;
     select_       = RawParser.ParseSingleSqlStatement
                         ($"select sysrid_, {string.Join(",", columns)} from {def_.table_.relname_}") as SelectStmt;
 }
예제 #2
0
 public CreateIndexStmt(string indexname,
                        BaseTableRef target, bool unique, List <string> columns, Expr where, string text) : base(text)
 {
     targetref_ = target;
     def_       = new IndexDef
     {
         name_    = indexname,
         unique_  = unique,
         columns_ = columns,
         table_   = target
     };
     select_ = RawParser.ParseSingleSqlStatement
                   ($"select sysrid_, {string.Join(",", columns)} from {def_.table_.relname_}") as SelectStmt;
     // select_ is a different statement, binding their options
     select_.queryOpt_ = queryOpt_;
 }
예제 #3
0
 public LogicIndex(LogicNode child, IndexDef def)
 {
     children_.Add(child); def_ = def;
 }