mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Remove public StatementArguments()
This commit is contained in:
1 parent
30ee538dbd
commit
e784ebbcdd
3 files changed
+1
-12
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user