mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
v0.82.0
This commit is contained in:
1 parent
df91e31397
commit
b63046b20a
4 files changed
+17
-14
No files matched your search
+4
-2
@@ -1,7 +1,9 @@
|
||||
Release Notes
|
||||
=============
|
||||
|
||||
## Next Version
|
||||
## 0.82.0
|
||||
|
||||
Released September 11, 2016
|
||||
|
||||
**New**
|
||||
|
||||
@@ -196,7 +198,7 @@ Release Notes
|
||||
|
||||
**Transaction Observers**
|
||||
|
||||
Database events filtering is now performed by transaction observers themselves.
|
||||
Database events filtering is now performed by transaction observers themselves, in the new `observes(eventsOfKind:)` method of the `TransactionObserver` protocol.
|
||||
|
||||
```diff
|
||||
class Database {
|
||||
|
||||
+3
-1
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'GRDB.swift'
|
||||
s.version = '0.81.0'
|
||||
s.version = '0.82.0'
|
||||
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
s.summary = 'A Swift application toolkit for SQLite databases.'
|
||||
@@ -17,4 +17,6 @@ Pod::Spec.new do |s|
|
||||
s.module_map = 'Support/module.modulemap'
|
||||
s.framework = 'Foundation'
|
||||
s.library = 'sqlite3'
|
||||
|
||||
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3.0' }
|
||||
end
|
||||
@@ -3,13 +3,12 @@ GRDB.swift [
|
||||
|
||||
### A Swift application toolkit for SQLite databases.
|
||||
|
||||
**Latest release**: September 10, 2016 • version 0.81.0 • [CHANGELOG](CHANGELOG.md)
|
||||
**Latest release**: September 11, 2016 • version 0.82.0 • [CHANGELOG](CHANGELOG.md)
|
||||
|
||||
**Requirements**: iOS 8.0+ / OSX 10.9+ / watchOS 2.0+ • Xcode 8+ • Swift 3
|
||||
|
||||
- Swift 2.2: use the [version 0.80.2](https://github.com/groue/GRDB.swift/tree/v0.80.2)
|
||||
- Swift 2.3: use the [version 0.81.0](https://github.com/groue/GRDB.swift/tree/v0.81.0)
|
||||
- Swift 3: use the [Swift3 branch](https://github.com/groue/GRDB.swift/tree/Swift3)
|
||||
|
||||
Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips.
|
||||
|
||||
@@ -167,7 +166,7 @@ Documentation
|
||||
|
||||
**Reference**
|
||||
|
||||
- [GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/index.html) (on cocoadocs.org)
|
||||
- [GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/index.html) (on cocoadocs.org)
|
||||
|
||||
**Getting Started**
|
||||
|
||||
@@ -348,7 +347,7 @@ let dbQueue = try DatabaseQueue(
|
||||
configuration: config)
|
||||
```
|
||||
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Structs/Configuration.html) for more details.
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Structs/Configuration.html) for more details.
|
||||
|
||||
|
||||
## Database Pools
|
||||
@@ -428,7 +427,7 @@ let dbPool = try DatabasePool(
|
||||
configuration: config)
|
||||
```
|
||||
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Structs/Configuration.html) for more details.
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Structs/Configuration.html) for more details.
|
||||
|
||||
|
||||
Database pools are more memory-hungry than database queues. See [Memory Management](#memory-management) for more information.
|
||||
@@ -1523,10 +1522,10 @@ for person in Person.fetch(db, sql, adapter: adapter) {
|
||||
|
||||
For more information about row adapters, see the documentation of:
|
||||
|
||||
- [RowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Protocols/RowAdapter.html): the protocol that lets you define your custom row adapters
|
||||
- [ColumnMapping](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Structs/ColumnMapping.html): a row adapter that renames row columns
|
||||
- [SuffixRowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Structs/SuffixRowAdapter.html): a row adapter that hides the first columns of a row
|
||||
- [ScopeAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Structs/ScopeAdapter.html): the row adapter that groups several adapters together to define scopes
|
||||
- [RowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Protocols/RowAdapter.html): the protocol that lets you define your custom row adapters
|
||||
- [ColumnMapping](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Structs/ColumnMapping.html): a row adapter that renames row columns
|
||||
- [SuffixRowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Structs/SuffixRowAdapter.html): a row adapter that hides the first columns of a row
|
||||
- [ScopeAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Structs/ScopeAdapter.html): the row adapter that groups several adapters together to define scopes
|
||||
|
||||
|
||||
## Raw SQLite Pointers
|
||||
@@ -3752,7 +3751,7 @@ let count2 = dbQueue.inDatabase { db in
|
||||
|
||||
SQLite concurrency is a wiiide topic.
|
||||
|
||||
First have a detailed look at the full API of [DatabaseQueue](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Classes/DatabaseQueue.html) and [DatabasePool](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Classes/DatabasePool.html). Both adopt the [DatabaseReader](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Protocols/DatabaseReader.html) and [DatabaseWriter](http://cocoadocs.org/docsets/GRDB.swift/0.81.0/Protocols/DatabaseWriter.html) protocols, so that you can write code that targets both classes.
|
||||
First have a detailed look at the full API of [DatabaseQueue](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Classes/DatabaseQueue.html) and [DatabasePool](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Classes/DatabasePool.html). Both adopt the [DatabaseReader](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Protocols/DatabaseReader.html) and [DatabaseWriter](http://cocoadocs.org/docsets/GRDB.swift/0.82.0/Protocols/DatabaseWriter.html) protocols, so that you can write code that targets both classes.
|
||||
|
||||
If the built-in queues and pools do not fit your needs, or if you can not guarantee that a single queue or pool is accessing your database file, you may have a look at:
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.81.0</string>
|
||||
<string>0.82.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
Reference in new issue
Block a user