5532303135
Most things should work as they have been, with a few notes: - The `db.transaction` helpers that took variadic auto-closures have been removed (Swift no longer supports variadic auto-closures). Update path: use `&&` and `||` for control flow: db.transaction() && stmt1 && stmt2 && db.commit() || db.rollback() Or use the block-based helper: db.transaction { _ in stmt1.run() if stmt1.failed { return .Rollback } stmt2.run() if stmt2.failed { return .Rollback } return .Commit } Note: You'll need to explicitly call/return COMMIT and ROLLBACK now. - There appears to be a bug in Swift causing 2 memory-related, over-releasing crashes in the test suite. Filed: rdar://19782170 Many bugs marked FIXME with links to rdars are now fixable and have been fixed. The tests have also been heavily refactored (they were abusing the power of `@autoclosure`, which has been curtailed with `@noescape`), but should be generally more readable, if slightly less flexible. Signed-off-by: Stephen Celis <stephen@stephencelis.com> |
||
---|---|---|
.. | ||
CipherTests.swift |