Skip to content

Commit 5790441

Browse files
committed
Merge pull request stephencelis#316 from mikemee/master
Start moving issues into tracking document, minor docs example tweak
2 parents 4a0fa9c + a3f04cc commit 5790441

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

Documentation/Index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,13 +1450,15 @@ Though we recommend you stick with SQLite.swift’s [type-safe system](#building
14501450
db.changes // -> {Some 1}
14511451
```
14521452

1453-
Statements with results may be iterated over.
1453+
Statements with results may be iterated over, using the columnNames if useful.
14541454

14551455
``` swift
14561456
let stmt = try db.prepare("SELECT id, email FROM users")
14571457
for row in stmt {
1458-
print("id: \(row[0]), email: \(row[1])")
1459-
// id: Optional(1), email: Optional("alice@mac.com")
1458+
for (index, name) in stmt.columnNames.enumerate() {
1459+
print ("\(name)=\(row[index]!)")
1460+
// id: Optional(1), email: Optional("alice@mac.com")
1461+
}
14601462
}
14611463
```
14621464

Documentation/Planning.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# SQLite.swift Planning
2+
3+
This document captures both near term steps (aka Roadmap) and feature requests.
4+
The goal is to add some visibility and guidance for future additions and Pull Requests, as well as to keep the Issues list clear of enhancement requests so that bugs are more visible.
5+
6+
## Roadmap
7+
8+
_Lists agreed upon next steps in approximate priority order._
9+
10+
* publish to the CocoaPods directory at https://cocoapods.org/, per #257
11+
* add SQLCipher back into the product as a separate repo, per #311
12+
13+
14+
## Feature Requests
15+
16+
_A gathering point for ideas for new features. In general, the corresponding issue will be closed once it is added here, with the assumption that it will be referred to when it comes time to add the corresponding feature._
17+
18+
### Packaging
19+
20+
* add TV OS support, per #272 - currently pending SQLiteCipher merge and/or adding ability for user to pick their preferred [SQLCipher](https://github.com/sqlcipher/sqlcipher) branch
21+
* linux support via Swift Package Manager, per #315
22+
23+
### Features
24+
25+
* provide separate threads for update vs read, so updates don't block reads, per #236
26+
* expose more FTS4 options, e.g. virtual table support per #164
27+
* expose triggers, per #164
28+
29+
## Suspended Feature Requests
30+
31+
_Features that are not actively being considered, perhaps because of no clean type-safe way to implement them with the current Swift, or bugs, or just general uncertainty._
32+
33+
* provide a mechanism for INSERT INTO multiple values, per #168

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,16 @@ To install SQLite.swift with [SQLCipher][] support:
213213
214214
## Communication
215215
216+
[See the planning document] for a roadmap and existing feature requests.
217+
216218
[Read the contributing guidelines][]. The _TL;DR_ (but please; _R_):
217219
218220
- Need **help** or have a **general question**? [Ask on Stack
219221
Overflow][] (tag `sqlite.swift`).
220222
- Found a **bug** or have a **feature request**? [Open an issue][].
221223
- Want to **contribute**? [Submit a pull request][].
222224
225+
[See the planning document]: /Documentation/Planning.md
223226
[Read the contributing guidelines]: ./CONTRIBUTING.md#contributing
224227
[Ask on Stack Overflow]: http://stackoverflow.com/questions/tagged/sqlite.swift
225228
[Open an issue]: https://github.com/stephencelis/SQLite.swift/issues/new

0 commit comments

Comments
 (0)