@@ -56,7 +56,6 @@ public class SQLiteConfig {
56
56
57
57
private final int busyTimeout ;
58
58
private boolean explicitReadOnly ;
59
- private boolean readAttachedDatabases ;
60
59
61
60
private final SQLiteConnectionConfig defaultConnectionConfig ;
62
61
@@ -94,10 +93,6 @@ public SQLiteConfig(Properties prop) {
94
93
this .explicitReadOnly =
95
94
Boolean .parseBoolean (
96
95
pragmaTable .getProperty (Pragma .JDBC_EXPLICIT_READONLY .pragmaName , "false" ));
97
- this .readAttachedDatabases =
98
- Boolean .parseBoolean (
99
- pragmaTable .getProperty (
100
- Pragma .METADATA_READ_ATTACHED_DATABASES .pragmaName , "false" ));
101
96
}
102
97
103
98
public SQLiteConnectionConfig newConnectionConfig () {
@@ -191,9 +186,8 @@ public void apply(Connection conn) throws SQLException {
191
186
pragmaParams .remove (Pragma .LIMIT_WORKER_THREADS .pragmaName );
192
187
pragmaParams .remove (Pragma .LIMIT_PAGE_COUNT .pragmaName );
193
188
194
- // exclude these "fake" pragmas from execution
189
+ // exclude this "fake" pragma from execution
195
190
pragmaParams .remove (Pragma .JDBC_EXPLICIT_READONLY .pragmaName );
196
- pragmaParams .remove (Pragma .METADATA_READ_ATTACHED_DATABASES .pragmaName );
197
191
198
192
Statement stat = conn .createStatement ();
199
193
try {
@@ -336,10 +330,6 @@ public Properties toProperties() {
336
330
defaultConnectionConfig .getDateStringFormat ());
337
331
pragmaTable .setProperty (
338
332
Pragma .JDBC_EXPLICIT_READONLY .pragmaName , this .explicitReadOnly ? "true" : "false" );
339
- pragmaTable .setProperty (
340
- Pragma .METADATA_READ_ATTACHED_DATABASES .pragmaName ,
341
- this .readAttachedDatabases ? "true" : "false"
342
- );
343
333
return pragmaTable ;
344
334
}
345
335
@@ -383,20 +373,6 @@ public void setExplicitReadOnly(boolean readOnly) {
383
373
this .explicitReadOnly = readOnly ;
384
374
}
385
375
386
- /** @return true if reading attached databases is allowed */
387
- public boolean isReadAttachedDatabases () {
388
- return readAttachedDatabases ;
389
- }
390
-
391
- /**
392
- * Enable reading attached databases in metadata, they will be shown as schemas
393
- *
394
- * @param readAttachedDatabases whether to read attached databases
395
- */
396
- public void setReadAttachedDatabases (boolean readAttachedDatabases ) {
397
- this .readAttachedDatabases = readAttachedDatabases ;
398
- }
399
-
400
376
public enum Pragma {
401
377
402
378
// Parameters requiring SQLite3 API invocation
@@ -558,11 +534,8 @@ public enum Pragma {
558
534
559
535
// extensions: "fake" pragmas to allow conformance with JDBC
560
536
JDBC_EXPLICIT_READONLY (
561
- "jdbc.explicit_readonly" , "Set explicit read only transactions" , null ),
562
- // "fake" pragma to allow configurating metadata reading by driver
563
- METADATA_READ_ATTACHED_DATABASES ("metadata.read_attached_databases" ,
564
- "Set read attached databases as schemas" ,
565
- OnOff );
537
+ "jdbc.explicit_readonly" , "Set explicit read only transactions" , null );
538
+
566
539
public final String pragmaName ;
567
540
public final String [] choices ;
568
541
public final String description ;
0 commit comments