1
1
# SQLite.swift
2
2
3
- A type-safe, [ Swift] [ 1.1 ] -language layer over [ SQLite3] [ 1.2 ] .
3
+ A type-safe, [ Swift] [ ] -language layer over [ SQLite3] [ ] .
4
4
5
- [ SQLite.swift] [ 1.3 ] provides compile-time confidence in SQL statement
5
+ [ SQLite.swift] [ ] provides compile-time confidence in SQL statement
6
6
syntax _ and_ intent.
7
7
8
- [ 1.1 ] : https://developer.apple.com/swift/
9
- [ 1.2 ] : http://www.sqlite.org
10
- [ 1.3 ] : https://github.com/stephencelis/SQLite.swift
8
+ [ Swift ] : https://developer.apple.com/swift/
9
+ [ SQLite3 ] : http://www.sqlite.org
10
+ [ SQLite.swift ] : https://github.com/stephencelis/SQLite.swift
11
11
12
12
13
13
## Features
@@ -104,22 +104,22 @@ interactively, from the Xcode project’s playground.
104
104
105
105
## Installation
106
106
107
- > _ Note:_ SQLite.swift requires Swift 1.1 (and [ Xcode
108
- > 6.1 ] ( https://developer.apple.com/xcode/downloads/ ) ) or greater.
107
+ > _ Note:_ SQLite.swift requires Swift 1.1 (and [ Xcode] [ ] 6.1) or
108
+ > greater.
109
109
>
110
110
> For the Swift 1.2 beta (included in Xcode 6.3), use the
111
111
> [ ` swift-1-2 ` ] ( https://github.com/stephencelis/SQLite.swift/tree/swift-1-2 )
112
112
> branch.
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
116
- > tool, please read the [ Frameworkless Targets] [ 4.0 ] section of the
116
+ > tool, please read the [ Frameworkless Targets] [ ] section of the
117
117
> documentation.
118
118
119
119
To install SQLite.swift:
120
120
121
121
1 . Drag the ** SQLite.xcodeproj** file into your own project.
122
- ([ Submodule] [ 4.2 ] , clone, or [ download] [ 4.3 ] the project first.)
122
+ ([ Submodule] [ ] , clone, or [ download] [ ] the project first.)
123
123
124
124
![ ] ( Documentation/Resources/installation@2x.png )
125
125
@@ -132,10 +132,10 @@ To install SQLite.swift:
132
132
4 . Add ** SQLite.framework** to a ** Copy Files** build phase with a
133
133
** Frameworks** destination. (Add a new build phase if need be.)
134
134
135
- [ 4.0 ] : Documentation/Index.md#frameworkless-targets
136
- [ 4.1 ] : https://developer.apple.com/xcode/downloads/
137
- [ 4.2 ] : http://git-scm.com/book/en/Git-Tools-Submodules
138
- [ 4.3 ] : https://github.com/stephencelis/SQLite.swift/archive/master.zip
135
+ [ Frameworkless Targets ] : Documentation/Index.md#frameworkless-targets
136
+ [ Xcode ] : https://developer.apple.com/xcode/downloads/
137
+ [ Submodule ] : http://git-scm.com/book/en/Git-Tools-Submodules
138
+ [ download ] : https://github.com/stephencelis/SQLite.swift/archive/master.zip
139
139
140
140
141
141
### SQLCipher
@@ -150,19 +150,29 @@ To install SQLite.swift with [SQLCipher][] support:
150
150
2 . Follow [ the instructions above] ( #installation ) with the
151
151
** SQLiteCipher** target, instead.
152
152
153
+ > _ Note:_ By default, SQLCipher compiles [ without support for full-text
154
+ > search] [ ] . If you intend to use [ FTS4] [ ] , make sure you add the
155
+ > following to ** Other C Flags** in the ** Build Settings** of the
156
+ > ** sqlcipher** target (in the ** sqlcipher.xcodeproj** project):
157
+ >
158
+ > - ` -DSQLITE_ENABLE_FTS4 `
159
+ > - ` -DSQLITE_ENABLE_FTS3_PARENTHESIS `
160
+
153
161
[ SQLCipher ] : http://sqlcipher.net
162
+ [ without support for full-text search ] : https://github.com/sqlcipher/sqlcipher/issues/102
163
+ [ FTS4 ] : http://www.sqlite.org/fts3.html
154
164
155
165
156
166
## Communication
157
167
158
168
- Need ** help** or have a ** general question** ? [ Ask on Stack
159
- Overflow] [ 5.1 ] (tag ` sqlite.swift ` ).
160
- - Found a ** bug** or have a ** feature request** ? [ Open an issue] [ 5.2 ] .
161
- - Want to ** contribute** ? [ Submit a pull request] [ 5.3 ] .
169
+ Overflow] [ ] (tag ` sqlite.swift ` ).
170
+ - Found a ** bug** or have a ** feature request** ? [ Open an issue] [ ] .
171
+ - Want to ** contribute** ? [ Submit a pull request] [ ] .
162
172
163
- [ 5.1 ] : http://stackoverflow.com/questions/tagged/sqlite.swift
164
- [ 5.2 ] : https://github.com/stephencelis/SQLite.swift/issues/new
165
- [ 5.3 ] : https://github.com/stephencelis/SQLite.swift/fork
173
+ [ Ask on Stack Overflow ] : http://stackoverflow.com/questions/tagged/sqlite.swift
174
+ [ Open an issue ] : https://github.com/stephencelis/SQLite.swift/issues/new
175
+ [ Submit a pull request ] : https://github.com/stephencelis/SQLite.swift/fork
166
176
167
177
168
178
## Author
@@ -173,15 +183,13 @@ To install SQLite.swift with [SQLCipher][] support:
173
183
174
184
## License
175
185
176
- SQLite.swift is available under the MIT license. See [ the LICENSE file] [ 7.1 ]
177
- for more information.
178
-
179
- [ 7.1 ] : ./LICENSE.txt
186
+ SQLite.swift is available under the MIT license. See [ the LICENSE
187
+ file] ( ./LICENSE.txt ) for more information.
180
188
181
189
182
190
## Alternatives
183
191
184
- Looking for something else? Try another Swift wrapper (or [ FMDB] [ 8.1 ] ):
192
+ Looking for something else? Try another Swift wrapper (or [ FMDB] [ ] ):
185
193
186
194
- [ Camembert] ( https://github.com/remirobert/Camembert )
187
195
- [ EonilSQLite3] ( https://github.com/Eonil/SQLite3 )
@@ -190,4 +198,4 @@ Looking for something else? Try another Swift wrapper (or [FMDB][8.1]):
190
198
- [ SwiftData] ( https://github.com/ryanfowler/SwiftData )
191
199
- [ SwiftSQLite] ( https://github.com/chrismsimpson/SwiftSQLite )
192
200
193
- [ 8.1 ] : https://github.com/ccgus/fmdb
201
+ [ FMDB ] : https://github.com/ccgus/fmdb
0 commit comments