GRDB.swift v0.12.0 Release Notes
-
๐ Released September 6, 2015
๐ New
RowConvertible
andDatabaseTableMapping
protocols grant any type the fetching methods that used to be a privilege ofRowModel
.Row.columnNames
returns the names of columns in the row.Row.databaseValues
returns the database values in the row.Blob.init(bytes:length:)
is a new initializer.DatabaseValueConvertible
can now be adopted by non-final classes.NSData
,NSDate
,NSNull
,NSNumber
andNSString
adoptDatabaseValueConvertible
and can natively be stored and fetched from a database.
๐ฅ Breaking changes
- ๐
DatabaseDate
has been removed (replaced by built-in NSDate support). DatabaseValueConvertible
:init?(dbValue:)
has been replaced bystatic func fromDatabaseValue(_:) -> Self?
Blob.init(_:)
has been replaced withBlob.init(data:)
andBlob.init(dataNoCopy:)
.- ๐
RowModel.edited
has been renamedRowModel.databaseEdited
. RowModel.databaseTable
has been replaced withRowModel.databaseTableName()
which returns a String.- โก๏ธ
RowModel.setDatabaseValue(_:forColumn:)
has been removed. Use and overrideRowModel.updateFromRow(_:)
instead. RowModel.didFetch()
has been renamedRowModel.awakeFromFetch()