Skip to content

Commit 3d17848

Browse files
committed
add filename method to connection for sqlite3 like native adapter
1 parent a6fd2b1 commit 3d17848

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ public IRubyObject create_savepoint(final ThreadContext context, final IRubyObje
402402
finally { close(statement); }
403403
}
404404

405+
@JRubyMethod
406+
public IRubyObject filename(ThreadContext context) {
407+
return getConfigValue(context, "database");
408+
}
409+
405410
@Override
406411
@JRubyMethod(name = "rollback_savepoint", required = 1)
407412
public IRubyObject rollback_savepoint(final ThreadContext context, final IRubyObject name) {

0 commit comments

Comments
 (0)