You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -219,7 +219,7 @@ let db = try Connection("\(path)/db.sqlite3")
219
219
If you bundle a database with your app (_i.e._, you’ve copied a database file into your Xcode project and added it to your application target), you can establish a _read-only_ connection to it.
220
220
221
221
``` swift
222
-
let path =NSBundle.mainBundle().pathForResource("db", ofType: "sqlite3")!
222
+
let path =Bundle.main.pathForResource("db", ofType: "sqlite3")!
223
223
224
224
let db =tryConnection(path, readonly: true)
225
225
```
@@ -1114,41 +1114,41 @@ Once extended, the type can be used [_almost_](#custom-type-caveats) wherever ty
1114
1114
1115
1115
### Date-Time Values
1116
1116
1117
-
In SQLite, `DATETIME` columns can be treated as strings or numbers, so we can transparently bridge `NSDate` objects through Swift’s `String` or `Int` types.
1117
+
In SQLite, `DATETIME` columns can be treated as strings or numbers, so we can transparently bridge `Date` objects through Swift’s `String` or `Int` types.
1118
1118
1119
-
To serialize `NSDate` objects as `TEXT` values (in ISO 8601), we’ll use `String`.
1119
+
To serialize `Date` objects as `TEXT` values (in ISO 8601), we’ll use `String`.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# SQLite.swift
2
2
3
-
[![Build Status][Badge]][Travis][](http://cocoadocs.org/docsets/SQLite.swift)[](http://cocoadocs.org/docsets/SQLite.swift)[](https://github.com/Carthage/Carthage)[](https://gitter.im/stephencelis/SQLite.swift)
3
+
[![Build Status][Badge]][Travis][](http://cocoadocs.org/docsets/SQLite.swift)[](https://developer.apple.com/swift/)[](http://cocoadocs.org/docsets/SQLite.swift)[](https://github.com/Carthage/Carthage)[](https://gitter.im/stephencelis/SQLite.swift)
4
4
5
5
A type-safe, [Swift][]-language layer over [SQLite3][].
6
6
@@ -109,7 +109,7 @@ For a more comprehensive example, see [this article](http://masteringswift.blogs
109
109
110
110
## Installation
111
111
112
-
> _Note:_ SQLite.swift requires Swift 2 (and [Xcode][]7) or greater.
112
+
> _Note:_ SQLite.swift requires Swift 3 (and [Xcode][]8) or greater.
113
113
>
114
114
> The following instructions apply to targets that support embedded
115
115
> Swift frameworks. To use SQLite.swift in iOS 7 or an OS X command line
0 commit comments