Realm v0.6.0 Release Notes
Release Date: 2014-04-11 // about 10 years ago-
API breaking changes
contextWithPersistenceToFile:error:
renamed tocontextPersistedAtPath:error:
inTDBContext
readWithBlock:
renamed toreadUsingBlock:
inTDBContext
writeWithBlock:error:
renamed towriteUsingBlock:error:
inTDBContext
readTable:withBlock:
renamed toreadTable:usingBlock:
inTDBContext
writeTable:withBlock:error:
renamed towriteTable:usingBlock:error:
inTDBContext
findFirstRow
renamed toindexOfFirstMatchingRow
onTDBQuery
.findFirstRowFromIndex:
renamed toindexOfFirstMatchingRowFromIndex:
onTDBQuery
.- Return
NSNotFound
instead of -1 when appropriate. - ๐ Renamed
castClass
tocastToTytpedTableClass
onTDBTable
. - ๐
removeAllRows
,removeRowAtIndex
,removeLastRow
,addRow
andinsertRow
methods on table now return void instead of BOOL.
โจ Enhancements
- A
TDBTable
can now be queried usingwhere:
andwhere:orderBy:
takingNSPredicate
andNSSortDescriptor
as arguments. - โ Added
find:
method onTDBTable
to find first row matching predicate. - 0๏ธโฃ
contextWithDefaultPersistence
class method added toTDBContext
. Will create a context persisted to a file in app/documents folder. renameColumnWithIndex:to:
has been added toTDBTable
.distinctValuesInColumnWithIndex
has been added toTDBTable
.dateIsBetween::
,doubleIsBetween::
,floatIsBetween::
andintIsBetween::
have been added toTDBQuery
.- Column names in Typed Tables can begin with non-capital letters too. The generated
addX
selector can look odd. For example, a table with one column with nameage
, appending a new row will look like[table addage:7]
. - ๐ Mixed typed values are better validated when rows are added, inserted, or modified as object literals.
- โก๏ธ
addRow
,insertRow
, and row updates can be done using objects derived fromNSObject
. where
has been added toTDBView
andTDBViewProtocol
.- โ Adding support for "smart" contexts (
TDBSmartContext
).
๐ Bugfixes
- ๐ป Modifications of a
TDBView
andTDBQuery
now throw an exception in a readtransaction.