Beispiel #1
0
 public Xoud_site_tbl(Db_conn conn) {
   this.conn = conn;
   fld_site_id = flds.Add_int_pkey("site_id");
   fld_site_priority =
       flds.Add_int("site_priority"); // EX: 0=default; 1+ is order if 0 is unavailable
   fld_site_domain =
       flds.Add_str("site_domain", 255); // EX: en.wikipedia.org; NOTE: no protocol (https:)
   fld_site_name = flds.Add_str("site_name", 255); // EX: English Wikipedia
   fld_site_path = flds.Add_str("site_path", 255); // EX: ~{xowa_root}/wiki/en.wikipedia.org/
   fld_site_xtn = flds.Add_text("site_xtn");
   conn.Rls_reg(this);
 }
 public Xobc_import_step_tbl(Db_conn conn) {
   this.conn = conn;
   this.tbl_name = "import_step";
   this.fld_step_id = flds.Add_int_pkey("step_id");
   this.fld_host_id = flds.Add_int("host_id");
   this.fld_wiki_abrv = flds.Add_str("wiki_abrv", 255);
   this.fld_wiki_date = flds.Add_str("wiki_date", 8);
   this.fld_import_name = flds.Add_str("import_name", 255);
   this.fld_import_type = flds.Add_int("import_type");
   this.fld_import_zip = flds.Add_byte("import_zip");
   this.fld_import_size_zip = flds.Add_long("import_size_zip");
   this.fld_import_size_raw = flds.Add_long("import_size_raw");
   this.fld_import_md5 = flds.Add_str("import_md5", 48);
   this.fld_prog_size_end = flds.Add_long("prog_size_end");
   this.fld_prog_count_end = flds.Add_long("prog_count_end");
   conn.Rls_reg(this);
 }
 public Xoh_stat_tbl(Db_conn conn) {
   this.conn = conn;
   this.Create_tbl();
   conn.Stmt_delete(tbl_name).Exec_delete(); // always zap table
   conn.Rls_reg(this);
 }