Mercurial Hosting > luan
comparison src/luan/modules/lucene/PostgresBackup.java @ 1553:26c51acf00f3
improve stringify
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 06 Oct 2020 19:31:57 -0600 |
parents | c27dc6af87ca |
children | b89212fd04b5 |
comparison
equal
deleted
inserted
replaced
1552:46d4baaad64d | 1553:26c51acf00f3 |
---|---|
32 private final Connection con; | 32 private final Connection con; |
33 private final PreparedStatement insertStmt; | 33 private final PreparedStatement insertStmt; |
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(null,null); |
38 | 38 |
39 PostgresBackup(Luan luan,LuanTable 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 spec = new LuanTable(spec); |
80 ); | 80 ); |
81 deleteStmt = con.prepareStatement( | 81 deleteStmt = con.prepareStatement( |
82 "delete from lucene where id=?" | 82 "delete from lucene where id=?" |
83 ); | 83 ); |
84 | 84 |
85 luanToString.strict = true; | 85 luanToString.settingsInit.strict = true; |
86 luanToString.numberTypes = true; | 86 luanToString.settingsInit.numberTypes = true; |
87 } | 87 } |
88 | 88 |
89 Connection newConnection() throws SQLException { | 89 Connection newConnection() throws SQLException { |
90 return DriverManager.getConnection(url,props); | 90 return DriverManager.getConnection(url,props); |
91 } | 91 } |