1
1
# SQLite.swift Documentation
2
2
3
+ - [ SQLite.swift Documentation] ( #sqliteswift-documentation )
3
4
- [ Installation] ( #installation )
4
5
- [ Swift Package Manager] ( #swift-package-manager )
5
6
- [ Carthage] ( #carthage )
6
7
- [ CocoaPods] ( #cocoapods )
8
+ - [ Requiring a specific version of SQLite] ( #requiring-a-specific-version-of-sqlite )
9
+ - [ Using SQLite.swift with SQLCipher] ( #using-sqliteswift-with-sqlcipher )
7
10
- [ Manual] ( #manual )
8
11
- [ Getting Started] ( #getting-started )
9
12
- [ Connecting to a Database] ( #connecting-to-a-database )
10
13
- [ Read-Write Databases] ( #read-write-databases )
11
14
- [ Read-Only Databases] ( #read-only-databases )
12
- - [ In a Shared Group Container ] ( #in-a-shared-group-container )
15
+ - [ In a shared group container ] ( #in-a-shared-group-container )
13
16
- [ In-Memory Databases] ( #in-memory-databases )
14
17
- [ URI parameters] ( #uri-parameters )
15
18
- [ Thread-Safety] ( #thread-safety )
16
19
- [ Building Type-Safe SQL] ( #building-type-safe-sql )
17
20
- [ Expressions] ( #expressions )
18
- - [ Compound Expressions] ( #compound-expressions )
21
+ - [ Compound Expressions] ( #compound-expressions )
19
22
- [ Queries] ( #queries )
20
23
- [ Creating a Table] ( #creating-a-table )
21
24
- [ Create Table Options] ( #create-table-options )
24
27
- [ Inserting Rows] ( #inserting-rows )
25
28
- [ Handling SQLite errors] ( #handling-sqlite-errors )
26
29
- [ Setters] ( #setters )
30
+ - [ Infix Setters] ( #infix-setters )
31
+ - [ Postfix Setters] ( #postfix-setters )
27
32
- [ Selecting Rows] ( #selecting-rows )
28
33
- [ Iterating and Accessing Values] ( #iterating-and-accessing-values )
34
+ - [ Failable iteration] ( #failable-iteration )
29
35
- [ Plucking Rows] ( #plucking-rows )
30
36
- [ Building Complex Queries] ( #building-complex-queries )
31
37
- [ Selecting Columns] ( #selecting-columns )
34
40
- [ Table Aliasing] ( #table-aliasing )
35
41
- [ Filtering Rows] ( #filtering-rows )
36
42
- [ Filter Operators and Functions] ( #filter-operators-and-functions )
43
+ - [ Infix Filter Operators] ( #infix-filter-operators )
44
+ - [ Prefix Filter Operators] ( #prefix-filter-operators )
45
+ - [ Filtering Functions] ( #filtering-functions )
37
46
- [ Sorting Rows] ( #sorting-rows )
38
47
- [ Limiting and Paging Results] ( #limiting-and-paging-results )
39
48
- [ Recursive and Hierarchical Queries] ( #recursive-and-hierarchical-queries )
43
52
- [ Deleting Rows] ( #deleting-rows )
44
53
- [ Transactions and Savepoints] ( #transactions-and-savepoints )
45
54
- [ Querying the Schema] ( #querying-the-schema )
55
+ - [ Indexes and Columns] ( #indexes-and-columns )
46
56
- [ Altering the Schema] ( #altering-the-schema )
47
57
- [ Renaming Tables] ( #renaming-tables )
48
58
- [ Dropping Tables] ( #dropping-tables )
49
59
- [ Adding Columns] ( #adding-columns )
50
60
- [ Added Column Constraints] ( #added-column-constraints )
51
- - [ Schema Changer ] ( #schemachanger )
52
- - [ Adding Columns] ( #adding-columns )
61
+ - [ SchemaChanger ] ( #schemachanger )
62
+ - [ Adding Columns] ( #adding-columns-1 )
53
63
- [ Renaming Columns] ( #renaming-columns )
54
64
- [ Dropping Columns] ( #dropping-columns )
55
65
- [ Renaming/Dropping Tables] ( #renamingdropping-tables )
61
71
- [ Date-Time Values] ( #date-time-values )
62
72
- [ Binary Data] ( #binary-data )
63
73
- [ Codable Types] ( #codable-types )
74
+ - [ Inserting Codable Types] ( #inserting-codable-types )
75
+ - [ Updating Codable Types] ( #updating-codable-types )
76
+ - [ Retrieving Codable Types] ( #retrieving-codable-types )
77
+ - [ Restrictions] ( #restrictions )
64
78
- [ Other Operators] ( #other-operators )
79
+ - [ Other Infix Operators] ( #other-infix-operators )
80
+ - [ Other Prefix Operators] ( #other-prefix-operators )
65
81
- [ Core SQLite Functions] ( #core-sqlite-functions )
66
82
- [ Aggregate SQLite Functions] ( #aggregate-sqlite-functions )
67
83
- [ Window SQLite Functions] ( #window-sqlite-functions )
68
- - [ Date and Time Functions ] ( #date-and-time-functions )
84
+ - [ Date and Time functions ] ( #date-and-time-functions )
69
85
- [ Custom SQL Functions] ( #custom-sql-functions )
86
+ - [ Custom Aggregations] ( #custom-aggregations )
70
87
- [ Custom Collations] ( #custom-collations )
71
88
- [ Full-text Search] ( #full-text-search )
89
+ - [ FTS5] ( #fts5 )
72
90
- [ Executing Arbitrary SQL] ( #executing-arbitrary-sql )
91
+ - [ Online Database Backup] ( #online-database-backup )
73
92
- [ Attaching and detaching databases] ( #attaching-and-detaching-databases )
74
93
- [ Logging] ( #logging )
94
+ - [ Vacuum] ( #vacuum )
75
95
76
96
[ ↩ ] : #sqliteswift-documentation
77
97
@@ -88,7 +108,7 @@ process of downloading, compiling, and linking dependencies.
88
108
89
109
``` swift
90
110
dependencies: [
91
- .package (url : " https://github.com/stephencelis/SQLite.swift.git" , from : " 0.14.1 " )
111
+ .package (url : " https://github.com/stephencelis/SQLite.swift.git" , from : " 0.15.0 " )
92
112
]
93
113
```
94
114
@@ -109,7 +129,7 @@ install SQLite.swift with Carthage:
109
129
2 . Update your Cartfile to include the following:
110
130
111
131
``` ruby
112
- github " stephencelis/SQLite.swift" ~ > 0.14 . 1
132
+ github " stephencelis/SQLite.swift" ~ > 0.15 . 0
113
133
```
114
134
115
135
3 . Run ` carthage update` and [add the appropriate framework][Carthage Usage ].
@@ -139,7 +159,7 @@ install SQLite.swift with Carthage:
139
159
use_frameworks!
140
160
141
161
target 'YourAppTargetName' do
142
- pod 'SQLite.swift', '~> 0.14.1 '
162
+ pod 'SQLite.swift', '~> 0.15.0 '
143
163
end
144
164
` ` `
145
165
@@ -153,7 +173,7 @@ with the OS you can require the `standalone` subspec:
153
173
154
174
` ` ` ruby
155
175
target 'YourAppTargetName' do
156
- pod 'SQLite.swift/standalone', '~> 0.14.1 '
176
+ pod 'SQLite.swift/standalone', '~> 0.15.0 '
157
177
end
158
178
` ` `
159
179
@@ -163,7 +183,7 @@ dependency to sqlite3 or one of its subspecs:
163
183
164
184
` ` ` ruby
165
185
target 'YourAppTargetName' do
166
- pod 'SQLite.swift/standalone', '~> 0.14.1 '
186
+ pod 'SQLite.swift/standalone', '~> 0.15.0 '
167
187
pod 'sqlite3/fts5', '= 3.15.0' # SQLite 3.15.0 with FTS5 enabled
168
188
end
169
189
` ` `
@@ -179,7 +199,7 @@ If you want to use [SQLCipher][] with SQLite.swift you can require the
179
199
target 'YourAppTargetName' do
180
200
# Make sure you only require the subspec, otherwise you app might link against
181
201
# the system SQLite, which means the SQLCipher-specific methods won't work.
182
- pod 'SQLite.swift/SQLCipher', '~> 0.14.1 '
202
+ pod 'SQLite.swift/SQLCipher', '~> 0.15.0 '
183
203
end
184
204
` ` `
185
205
0 commit comments