mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Database.sqliteLibVersionNumber
This commit is contained in:
1 parent
4de97e6903
commit
0401d449bb
1 file changed
+16
@@ -121,6 +121,7 @@ let SQLITE_TRANSIENT = unsafeBitCast(OpaquePointer(bitPattern: -1), to: sqlite3_
|
||||
/// - ``clearSchemaCache()``
|
||||
/// - ``logError``
|
||||
/// - ``releaseMemory()``
|
||||
/// - ``sqliteLibVersionNumber``
|
||||
/// - ``trace(options:_:)``
|
||||
///
|
||||
/// ### Supporting Types
|
||||
@@ -302,6 +303,21 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// An integer equal to [`SQLITE_VERSION_NUMBER`](https://www.sqlite.org/c3ref/c_source_id.html).
|
||||
///
|
||||
/// This property returns the result of `sqlite3_libversion_number()`.
|
||||
///
|
||||
/// ```swift
|
||||
/// // Prints, for example, "3048000"
|
||||
/// print(Database.sqliteLibVersionNumber)
|
||||
/// ```
|
||||
@inline(__always)
|
||||
@inlinable
|
||||
public static var sqliteLibVersionNumber: CInt {
|
||||
sqlite3_libversion_number()
|
||||
}
|
||||
|
||||
/// Whether the database region selected by statement execution is
|
||||
/// recorded into `selectedRegion` by `track(_:)`.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user