mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Cfg: Add more implementation for cfg_cache and pub / sub
This commit is contained in:
@@ -150,6 +150,7 @@ public class Db_conn {
|
||||
}
|
||||
public Db_stmt Stmt_select_max(String tbl, String col, String... where) {
|
||||
Db_qry__select_in_tbl qry = new Db_qry__select_in_tbl(tbl, String_.Ary(String_.Format("Max({0}) AS {0}", col)), where, null, null, null, null);
|
||||
qry.Where_(where.length == 0 ? Db_crt_.Wildcard : Db_crt_.eq_many_(where));
|
||||
return engine.Stmt_by_qry(qry);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ public class Db_qry__select_in_tbl implements Db_qry {
|
||||
public boolean Exec_is_rdr() {return true;}
|
||||
public String Base_table() {return base_table;} private final String base_table;
|
||||
public Criteria Where() {return where;} private Criteria where;
|
||||
public void Where_(Criteria v) {this.where = v;}
|
||||
public String[] Select_flds() {return select_flds;} private final String[] select_flds;
|
||||
private final String[] where_flds;
|
||||
public void Where_sql(String_bldr sb) {
|
||||
|
||||
Reference in New Issue
Block a user