We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce88aa commit ec408d5Copy full SHA for ec408d5
1 file changed
Sources/SQLiteAdapter/SQLiteAdapter.swift
@@ -74,6 +74,7 @@ public protocol SQLiteType {
74
open class SQLite: SQLiteType {
75
76
public private(set) var dbPointer: OpaquePointer?
77
+ public private(set) var dbPath: String!
78
79
private let SQLITE_STATIC = unsafeBitCast(0, to: sqlite3_destructor_type.self)
80
private let SQLITE_TRANSIENT = unsafeBitCast(-1, to: sqlite3_destructor_type.self)
@@ -89,6 +90,7 @@ open class SQLite: SQLiteType {
89
90
91
if sqlite3_open(path, &db) == SQLITE_OK {
92
dbPointer = db
93
+ dbPath = path
94
log("database opened successfully, path: \(path)")
95
} else {
96
defer {
0 commit comments