This commit is contained in:
Gwendal Roué committed 2015-12-22 07:50:39 +01:00
1 parent eeff184daa
commit bfe3759423
4 files changed
+23 -20

No files matched your search

+16 -13
View File
@@ -1,7 +1,9 @@
Release Notes
=============
## Next Release
## 0.35.0
Released December 22, 2015
The Record class has been refactored so that it gets closer from the RowConvertible and DatabasePersistable protocols. It also makes it easier to write subclasses that have non-optional properties.
@@ -13,20 +15,9 @@ Methods names that did not match [Swift 3 API Design Guidelines](https://swift.o
**Breaking Changes**
DatabasePersistable:
- `DatabasePersistable.storedDatabaseDictionary` has been renamed `persistentDictionary` ([documentation](https://github.com/groue/GRDB.swift#databasepersistable-protocol)).
Row:
- `Row.value(named:)` and `Row.dataNoCopy(named:)` returns nil if no such column exists in the row. It used to crash with a fatal error ([documentation](https://github.com/groue/GRDB.swift#column-values)).
DatabaseValue:
- `DatabaseValue` has no public initializers. To create one, use `DatabaseValue.Null`, or the fact that Int, String, etc. adopt the DatabaseValueConvertible protocol: `1.databaseValue`, `"foo".databaseValue` ([documentation](https://github.com/groue/GRDB.swift#custom-value-types)).
Record ([documentation](https://github.com/groue/GRDB.swift#record)):
- `Record.storedDatabaseDictionary` has been renamed `persistentDictionary`.
- `Record.reload()` has been removed. You have to provide your own implementation, should you need reloading.
- `Record.init(row: Row)` has been renamed `Record.init(_ row: Row)` (unlabelled row argument).
- `Record.updateFromRow()` has been removed. Override `init(_ row: Row)` instead.
@@ -34,6 +25,18 @@ Record ([documentation](https://github.com/groue/GRDB.swift#record)):
- `Record.databaseEdited` has been renamed `hasPersistentChangedValues`.
- `Record.databaseChanges` has been renamed `persistentChangedValues` and now returns `[String: DatabaseValue?]`, the dictionary of old values for changed columns.
Row:
- `Row.value(named:)` and `Row.dataNoCopy(named:)` returns nil if no such column exists in the row. It used to crash with a fatal error ([documentation](https://github.com/groue/GRDB.swift#column-values)).
DatabasePersistable:
- `DatabasePersistable.storedDatabaseDictionary` has been renamed `persistentDictionary` ([documentation](https://github.com/groue/GRDB.swift#databasepersistable-protocol)).
DatabaseValue:
- `DatabaseValue` has no public initializers. To create one, use `DatabaseValue.Null`, or the fact that Int, String, etc. adopt the DatabaseValueConvertible protocol: `1.databaseValue`, `"foo".databaseValue` ([documentation](https://github.com/groue/GRDB.swift#custom-value-types)).
DatabaseMigrator:
- `DatabaseMigrator.registerMigrationWithoutForeignKeyChecks(_:_:)` has been renamed `DatabaseMigrator.registerMigration(_:withDisabledForeignKeyChecks:migrate:)` ([documentation](https://github.com/groue/GRDB.swift#advanced-database-schema-changes)).
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'GRDB.swift'
s.version = '0.34.0'
s.version = '0.35.0'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'Versatile SQLite toolkit for Swift.'
s.homepage = 'https://github.com/groue/GRDB.swift'
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.34.0</string>
<string>0.35.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
+5 -5
View File
@@ -5,7 +5,7 @@ GRDB.swift is an [SQLite](https://www.sqlite.org) toolkit for Swift 2, from the
It ships with a low-level database API, plus application-level tools.
**December 14, 2015: GRDB.swift 0.34.0 is out** - [Release notes](CHANGELOG.md). Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips.
**December 22, 2015: GRDB.swift 0.35.0 is out** - [Release notes](CHANGELOG.md). Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips.
**Requirements**: iOS 7.0+ / OSX 10.9+, Xcode 7+
@@ -39,7 +39,7 @@ Features
Documentation
=============
- **[GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.34.0/index.html)** (on cocoadocs.org)
- **[GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.35.0/index.html)** (on cocoadocs.org)
- **[Installation](#installation)**
@@ -95,7 +95,7 @@ To use GRDB.swift with Cocoapods, specify in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'GRDB.swift', '0.34.0'
pod 'GRDB.swift', '0.35.0'
```
@@ -106,7 +106,7 @@ pod 'GRDB.swift', '0.34.0'
To use GRDB.swift with Carthage, specify in your Cartfile:
```
github "groue/GRDB.swift" == 0.34.0
github "groue/GRDB.swift" == 0.35.0
```
@@ -183,7 +183,7 @@ let dbQueue = try DatabaseQueue(
configuration: config)
```
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.34.0/Structs/Configuration.html) and [Concurrency](#concurrency) for more details.
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.35.0/Structs/Configuration.html) and [Concurrency](#concurrency) for more details.
Once connected, the `inDatabase` and `inTransaction` methods perform your **database statements** in a dedicated, serial, queue: