Mercurial Hosting > luan
comparison src/luan/modules/lucene/PostgresBackup.java @ 1420:225808b90cee
options handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 26 Oct 2019 22:21:09 -0600 |
parents | 27efb1fcbcb5 |
children | d21a7cf8fa9e |
comparison
equal
deleted
inserted
replaced
1419:59fd2e8b1b9d | 1420:225808b90cee |
---|---|
34 private final PreparedStatement updateStmt; | 34 private final PreparedStatement updateStmt; |
35 private final PreparedStatement deleteStmt; | 35 private final PreparedStatement deleteStmt; |
36 private int trans = 0; | 36 private int trans = 0; |
37 private final LuanToString luanToString = new LuanToString(); | 37 private final LuanToString luanToString = new LuanToString(); |
38 | 38 |
39 PostgresBackup(Luan luan,Map spec) | 39 PostgresBackup(Luan luan,LuanTable spec) |
40 throws ClassNotFoundException, SQLException, LuanException | 40 throws ClassNotFoundException, SQLException, LuanException |
41 { | 41 { |
42 spec = new LuanTable(spec); | |
42 this.luanLogger = luan.getLogger(PostgresBackup.class); | 43 this.luanLogger = luan.getLogger(PostgresBackup.class); |
43 /* | 44 /* |
44 Class.forName("org.postgresql.Driver"); | 45 Class.forName("org.postgresql.Driver"); |
45 url = "jdbc:postgresql://localhost:5432/luan"; | 46 url = "jdbc:postgresql://localhost:5432/luan"; |
46 props.setProperty("user","postgres"); | 47 props.setProperty("user","postgres"); |