Mercurial Hosting > luan
comparison src/luan/modules/lucene/PostgresBackup.java @ 1563:8fbcc4747091
remove LuanFunction.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 09 Nov 2020 01:37:57 -0700 |
parents | b89212fd04b5 |
children | 582384548a69 |
comparison
equal
deleted
inserted
replaced
1562:b89212fd04b5 | 1563:8fbcc4747091 |
---|---|
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; | 37 private final LuanToString luanToString; |
38 | 38 |
39 PostgresBackup(Luan luan,LuanTable spec) | 39 PostgresBackup(LuanTable spec) |
40 throws ClassNotFoundException, SQLException, LuanException | 40 throws ClassNotFoundException, SQLException, LuanException |
41 { | 41 { |
42 spec = new LuanTable(spec); | 42 spec = new LuanTable(spec); |
43 /* | 43 /* |
44 Class.forName("org.postgresql.Driver"); | 44 Class.forName("org.postgresql.Driver"); |
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 = new LuanToString(luan,null,null); | 85 luanToString = new LuanToString(null,null); |
86 luanToString.settingsInit.strict = true; | 86 luanToString.settingsInit.strict = true; |
87 luanToString.settingsInit.numberTypes = true; | 87 luanToString.settingsInit.numberTypes = true; |
88 } | 88 } |
89 | 89 |
90 Connection newConnection() throws SQLException { | 90 Connection newConnection() throws SQLException { |