Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/java/org/imintel/mbtiles4j/MBTilesReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,13 @@ public int getMinZoom() throws MBTilesReadException {
throw new MBTilesReadException("Could not get min zoom", e);
}
}

/**
* Expose the Connection object
*
* @return the current Connection object
*/
public Connection getConnection() {
return connection;
}
}
9 changes: 9 additions & 0 deletions src/main/java/org/imintel/mbtiles4j/MBTilesWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,13 @@ public File close() {
return file;
}

/**
* Expose the Connection object
* This is for example useful for turning off auto commit.
*
* @return the current Connection object
*/
public Connection getConnection() {
return connection;
}
}