We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3a29c commit 8f42522Copy full SHA for 8f42522
src/SQLite.jl
@@ -58,6 +58,8 @@ DB() = DB(":memory:")
58
DBInterface.connect(::Type{DB}) = DB()
59
DBInterface.connect(::Type{DB}, f::AbstractString) = DB(f)
60
DBInterface.close!(db::DB) = _close(db)
61
+Base.close(db::DB) = _close(db)
62
+Base.isopen(db::DB) = db.handle != C_NULL
63
64
function _close(db::DB)
65
db.handle == C_NULL || sqlite3_close_v2(db.handle)
0 commit comments