summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/iciql/Db.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/Db.java b/src/main/java/com/iciql/Db.java
index 179b18d..ebcd352 100644
--- a/src/main/java/com/iciql/Db.java
+++ b/src/main/java/com/iciql/Db.java
@@ -51,7 +51,7 @@ import com.iciql.util.WeakIdentityHashMap;
* This class represents a connection to a database.
*/
-public class Db {
+public class Db implements AutoCloseable {
/**
* This map It holds unique tokens that are generated by functions such as
@@ -458,6 +458,7 @@ public class Db {
return conn;
}
+ @Override
public void close() {
try {
conn.close();