mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
v0.79.0
This commit is contained in:
1 parent
c6fd36b75d
commit
a35d5c4c3a
4 files changed
+30
-15
No files matched your search
@@ -1,6 +1,21 @@
|
||||
Release Notes
|
||||
=============
|
||||
|
||||
## 0.79.0
|
||||
|
||||
Released August 8, 2016
|
||||
|
||||
**Breaking Change**
|
||||
|
||||
- Column creation method `defaults(_:)` has been renamed `defaults(to:)`.
|
||||
|
||||
```swift
|
||||
try db.create(table: "pointOfInterests") { t in
|
||||
t.column("favorite", .Boolean).notNull().defaults(to: false)
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
## 0.78.0
|
||||
|
||||
Released August 6, 2016
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'GRDB.swift'
|
||||
s.version = '0.78.0'
|
||||
s.version = '0.79.0'
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
s.summary = 'A Swift application toolkit for SQLite databases.'
|
||||
s.homepage = 'https://github.com/groue/GRDB.swift'
|
||||
|
||||
@@ -5,7 +5,7 @@ GRDB.swift [ branch for Swift 3).
|
||||
|
||||
**Latest release**: August 6, 2016 • version 0.78.0 • [CHANGELOG](CHANGELOG.md)
|
||||
**Latest release**: August 8, 2016 • version 0.79.0 • [CHANGELOG](CHANGELOG.md)
|
||||
|
||||
Follow [@groue](http://twitter.com/groue) on Twitter for release announcements and usage tips.
|
||||
|
||||
@@ -115,10 +115,10 @@ try dbQueue.inDatabase { db in
|
||||
title: "Berlin",
|
||||
favorite: false,
|
||||
coordinate: CLLocationCoordinate2DMake(52.52437, 13.41053))
|
||||
|
||||
|
||||
try berlin.insert(db)
|
||||
berlin.id // some value
|
||||
|
||||
|
||||
berlin.favorite = true
|
||||
try berlin.update(db)
|
||||
|
||||
@@ -163,7 +163,7 @@ Documentation
|
||||
|
||||
**Reference**
|
||||
|
||||
- [GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/index.html) (on cocoadocs.org)
|
||||
- [GRDB Reference](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/index.html) (on cocoadocs.org)
|
||||
|
||||
**Getting Started**
|
||||
|
||||
@@ -210,7 +210,7 @@ To use GRDB with CocoaPods, specify in your Podfile:
|
||||
source 'https://github.com/CocoaPods/Specs.git'
|
||||
use_frameworks!
|
||||
|
||||
pod 'GRDB.swift', '~> 0.78.0'
|
||||
pod 'GRDB.swift', '~> 0.79.0'
|
||||
```
|
||||
|
||||
> :point_up: **Note**: [SQLCipher](#encryption) and [custom SQLite builds](#custom-sqlite-builds) are not available via CocoaPods.
|
||||
@@ -223,7 +223,7 @@ pod 'GRDB.swift', '~> 0.78.0'
|
||||
To use GRDB with Carthage, specify in your Cartfile:
|
||||
|
||||
```
|
||||
github "groue/GRDB.swift" ~> 0.78.0
|
||||
github "groue/GRDB.swift" ~> 0.79.0
|
||||
```
|
||||
|
||||
> :point_up: **Note**: [custom SQLite builds](#custom-sqlite-builds) are not available via Carthage.
|
||||
@@ -332,7 +332,7 @@ let dbQueue = try DatabaseQueue(
|
||||
configuration: config)
|
||||
```
|
||||
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Structs/Configuration.html) for more details.
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Structs/Configuration.html) for more details.
|
||||
|
||||
|
||||
## Database Pools
|
||||
@@ -412,7 +412,7 @@ let dbPool = try DatabasePool(
|
||||
configuration: config)
|
||||
```
|
||||
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Structs/Configuration.html) for more details.
|
||||
See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Structs/Configuration.html) for more details.
|
||||
|
||||
|
||||
Database pools are more memory-hungry than database queues. See [Memory Management](#memory-management) for more information.
|
||||
@@ -1504,10 +1504,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.78.0/Protocols/RowAdapter.html): the protocol that lets you define your custom row adapters
|
||||
- [ColumnMapping](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Structs/ColumnMapping.html): a row adapter that renames row columns
|
||||
- [SuffixRowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Structs/SuffixRowAdapter.html): a row adapter that hides the first columns of a row
|
||||
- [ScopeAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Structs/ScopeAdapter.html): the row adapter that groups several adapters together to define scopes
|
||||
- [RowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Protocols/RowAdapter.html): the protocol that lets you define your custom row adapters
|
||||
- [ColumnMapping](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Structs/ColumnMapping.html): a row adapter that renames row columns
|
||||
- [SuffixRowAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Structs/SuffixRowAdapter.html): a row adapter that hides the first columns of a row
|
||||
- [ScopeAdapter](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Structs/ScopeAdapter.html): the row adapter that groups several adapters together to define scopes
|
||||
|
||||
|
||||
## Raw SQLite Pointers
|
||||
@@ -3659,7 +3659,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.78.0/Classes/DatabaseQueue.html) and [DatabasePool](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Classes/DatabasePool.html). Both adopt the [DatabaseReader](http://cocoadocs.org/docsets/GRDB.swift/0.78.0/Protocols/DatabaseReader.html) and [DatabaseWriter](http://cocoadocs.org/docsets/GRDB.swift/0.78.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.79.0/Classes/DatabaseQueue.html) and [DatabasePool](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Classes/DatabasePool.html). Both adopt the [DatabaseReader](http://cocoadocs.org/docsets/GRDB.swift/0.79.0/Protocols/DatabaseReader.html) and [DatabaseWriter](http://cocoadocs.org/docsets/GRDB.swift/0.79.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.78.0</string>
|
||||
<string>0.79.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
Reference in new issue
Block a user