Skip to content

Commit 9b87e4d

Browse files
authored
Merge branch 'master' into sqlite3_trace_v2
2 parents 336faa1 + 38d9b85 commit 9b87e4d

File tree

6 files changed

+10
-25
lines changed

6 files changed

+10
-25
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ matrix:
1212
- env: VALIDATOR_SUBSPEC="standard"
1313
- env: VALIDATOR_SUBSPEC="standalone"
1414
before_install:
15+
- gem update bundler
1516
- gem install xcpretty --no-document
1617
script:
1718
- ./run-tests.sh

Documentation/Index.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,28 +1173,9 @@ let published = posts.filter(published_at <= Date())
11731173

11741174
### Binary Data
11751175

1176-
Any object that can be encoded and decoded can be stored as a blob of data in SQL.
1177-
1178-
We can create an `Data` bridge rather trivially.
1179-
1180-
``` swift
1181-
extension Data: Value {
1182-
class var declaredDatatype: String {
1183-
return Blob.declaredDatatype
1184-
}
1185-
class func fromDatatypeValue(blobValue: Blob) -> Self {
1186-
return self(bytes: blobValue.bytes, length: blobValue.length)
1187-
}
1188-
var datatypeValue: Blob {
1189-
return Blob(bytes: bytes, length: length)
1190-
}
1191-
}
1192-
```
1193-
11941176
We can bridge any type that can be initialized from and encoded to `Data`.
11951177

11961178
``` swift
1197-
// assumes Data conformance, above
11981179
extension UIImage: Value {
11991180
public class var declaredDatatype: String {
12001181
return Blob.declaredDatatype

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SQLite.swift
1+
# SQLite.swift
22

33
[![Build Status][Badge]][Travis] [![CocoaPods Version](https://cocoapod-badges.herokuapp.com/v/SQLite.swift/badge.png)](http://cocoadocs.org/docsets/SQLite.swift) [![Swift](https://img.shields.io/badge/swift-3-orange.svg?style=flat)](https://developer.apple.com/swift/) [![Platform](https://cocoapod-badges.herokuapp.com/p/SQLite.swift/badge.png)](http://cocoadocs.org/docsets/SQLite.swift) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Join the chat at https://gitter.im/stephencelis/SQLite.swift](https://badges.gitter.im/stephencelis/SQLite.swift.svg)](https://gitter.im/stephencelis/SQLite.swift)
44

@@ -109,7 +109,9 @@ For a more comprehensive example, see [this article](http://masteringswift.blogs
109109

110110
## Installation
111111

112-
> _Note:_ SQLite.swift requires Swift 3 (and [Xcode][] 8) or greater.
112+
> _Note:_ SQLite.swift requires Swift 3 (and [Xcode][] 8) or greater. If you absolutely
113+
> need compatibility with Swift 2.3 you can use the [swift-2.3][] branch or older
114+
> released versions. New development will happen exclusively on the master/Swift 3 branch.
113115
>
114116
> The following instructions apply to targets that support embedded
115117
> Swift frameworks. To use SQLite.swift in iOS 7 or an OS X command line
@@ -199,7 +201,7 @@ To install SQLite.swift as an Xcode sub-project:
199201
- Found a **bug** or have a **feature request**? [Open an issue][].
200202
- Want to **contribute**? [Submit a pull request][].
201203
202-
[See the planning document]: /Documentation/Planning.md
204+
[See the planning document]: /Documentation/Planning.md
203205
[Read the contributing guidelines]: ./CONTRIBUTING.md#contributing
204206
[Ask on Stack Overflow]: http://stackoverflow.com/questions/tagged/sqlite.swift
205207
[Open an issue]: https://github.com/stephencelis/SQLite.swift/issues/new
@@ -237,3 +239,4 @@ Looking for something else? Try another Swift wrapper (or [FMDB][]):
237239
- [SwiftSQLite](https://github.com/chrismsimpson/SwiftSQLite)
238240
239241
[FMDB]: https://github.com/ccgus/fmdb
242+
[swift-2.3]: https://github.com/stephencelis/SQLite.swift/tree/swift-2.3

SQLite/Core/Connection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Foundation.NSUUID
2626
import Dispatch
2727
#if SQLITE_SWIFT_STANDALONE
2828
import sqlite3
29-
#else
29+
#elseif COCOAPODS
3030
import CSQLite
3131
#endif
3232

SQLite/Core/Statement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#if SQLITE_SWIFT_STANDALONE
2626
import sqlite3
27-
#else
27+
#elseif COCOAPODS
2828
import CSQLite
2929
#endif
3030

SQLite/Helpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#if SQLITE_SWIFT_STANDALONE
2626
import sqlite3
27-
#else
27+
#elseif COCOAPODS
2828
import CSQLite
2929
#endif
3030

0 commit comments

Comments
 (0)