Skip to content

Commit eabf217

Browse files
committed
Merge branch 'master' into publicpod
2 parents aedd054 + 5790441 commit eabf217

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
@@ -1429,13 +1429,15 @@ Though we recommend you stick with SQLite.swift’s [type-safe system](#building
14291429
db.changes // -> {Some 1}
14301430
```
14311431

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

14341434
``` swift
14351435
let stmt = try db.prepare("SELECT id, email FROM users")
14361436
for row in stmt {
1437-
print("id: \(row[0]), email: \(row[1])")
1438-
// id: Optional(1), email: Optional("alice@mac.com")
1437+
for (index, name) in stmt.columnNames.enumerate() {
1438+
print ("\(name)=\(row[index]!)")
1439+
// id: Optional(1), email: Optional("alice@mac.com")
1440+
}
14391441
}
14401442
```
14411443

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
@@ -182,13 +182,16 @@ To install SQLite.swift as an Xcode sub-project:
182182
183183
## Communication
184184
185+
[See the planning document] for a roadmap and existing feature requests.
186+
185187
[Read the contributing guidelines][]. The _TL;DR_ (but please; _R_):
186188
187189
- Need **help** or have a **general question**? [Ask on Stack
188190
Overflow][] (tag `sqlite.swift`).
189191
- Found a **bug** or have a **feature request**? [Open an issue][].
190192
- Want to **contribute**? [Submit a pull request][].
191193
194+
[See the planning document]: /Documentation/Planning.md
192195
[Read the contributing guidelines]: ./CONTRIBUTING.md#contributing
193196
[Ask on Stack Overflow]: http://stackoverflow.com/questions/tagged/sqlite.swift
194197
[Open an issue]: https://github.com/stephencelis/SQLite.swift/issues/new

0 commit comments

Comments
 (0)