Int16
extension Int16: DatabaseValueConvertible, StatementColumnConvertible
Int16 adopts DatabaseValueConvertible and StatementColumnConvertible.
-
Returns a value initialized from a raw SQLite statement pointer.
Declaration
Swift
@inlinable public init(sqliteStatement: SQLiteStatement, index: Int32)
Parameters
sqliteStatement
A pointer to an SQLite statement.
index
The column index.
-
Returns a value that can be stored in the database.
Declaration
Swift
public var databaseValue: DatabaseValue { get }
-
Returns an Int16 initialized from dbValue, if possible.
Declaration
Swift
public static func fromDatabaseValue(_ dbValue: DatabaseValue) -> Int16?