Remove public StatementArguments()

This commit is contained in:
Gwendal Roué committed 2017-08-31 19:35:11 +02:00
1 parent 30ee538dbd
commit e784ebbcdd
3 files changed
+1 -12

No files matched your search

-6
View File
@@ -98,8 +98,6 @@ New features have been added in order to plug a few holes and support the [RxGRD
statement.index(ofColumn: "b") // 1
```
- Statement arguments have an empty initializer: `StatementArguments()`.
- Prepared statements expose a StatementCursor which does not output any value, and simply executes `sqlite3_step()` as it is iterated:
```swift
@@ -195,10 +193,6 @@ New features have been added in order to plug a few holes and support the [RxGRD
+ func index(ofColumn columnName: String) -> Int?
}
struct StatementArguments {
+ init()
}
-extension TableMapping {
+extension MutablePersistable {
@discardableResult static func deleteAll(_ db: Database) throws -> Int
+1 -1
View File
@@ -556,7 +556,7 @@ public struct StatementArguments {
// MARK: Empty Arguments
/// Creates empty StatementArguments.
public init() {
init() {
}
// MARK: Positional Arguments
@@ -23,11 +23,6 @@ class StatementArgumentsTests: GRDBTestCase {
try migrator.migrate(dbWriter)
}
func testEmptyStementArguments() {
let arguments = StatementArguments()
XCTAssert(arguments.isEmpty)
}
func testPositionalStatementArgumentsValidation() throws {
let dbQueue = try makeDatabaseQueue()
try dbQueue.inDatabase { db in