예제 #1
0
 public void Split__trg__nth__new(Split_ctx ctx, Db_conn trg_conn) {
   if (cur_ns_id != ctx.Trg_ns()) {
     if (cur_ns_id != -1) bldr.Exec_qry_end();
     cur_ns_id = ctx.Trg_ns();
     bldr.Exec_qry_bgn(Rndm_qry_itm.New_by_ns(ctx.Wiki(), cur_ns_id));
   }
   bldr.Exec_rng_bgn();
   bldr.Conn().Txn_bgn("rndm");
 }
예제 #2
0
 public void Split__init(Split_ctx ctx, Xow_wiki wiki, Db_conn wkr_conn) {
   this.bldr = Rndm_addon.Get(wiki).Mgr().New_bldr();
   ctx.Rslt_mgr().Reg_wkr(rslt_wkr);
 }