Commit Graph
2898 Commits
Author SHA1 Message Date
Gwendal Roué 770ee6aaec Merge pull request #69 from swiftlyfalling/fix-preupdate-hook-uninstall
Added missing call to uninstall the preupdate hook
2016-06-03 18:59:07 +02:00
swiftlyfalling 003a6ef4d2 Added missing call to uninstall the preupdate hook 2016-06-03 12:45:28 -04:00
Gwendal Roué f9e43fae29 Merge pull request #66 from swiftlyfalling/test-coverage-improvements
Test coverage improvements
2016-06-03 14:47:25 +02:00
swiftlyfalling 7e1eb5a970 Increase test coverage of DatabaseQueue 2016-06-03 08:36:25 -04:00
swiftlyfalling f231218a69 Increase test coverage of DatabaseValue.swift 2016-06-03 08:35:56 -04:00
swiftlyfalling e21c9cb8f0 Revert "Increase test coverage of DatabaseValue.swift"
This reverts commit 58084c6a65.
2016-06-03 08:35:04 -04:00
swiftlyfalling 8597808a61 Revert "Increase test coverage of DatabaseQueue"
This reverts commit 5ffac12f5b.
2016-06-03 08:34:41 -04:00
Gwendal Roué 1871eed0ab TODO.md 2016-06-03 10:49:38 +02:00
Gwendal Roué cd85b54dd7 #63 follow-up: let DatabaseEventType dispatch events to the correct TransactionObserver method so that we avoid runtime checks on events type 2016-06-03 08:37:53 +02:00
Gwendal Roué 6dd04142b3 #63 follow-up: remove DatabaseEventType from public API 2016-06-03 08:31:17 +02:00
Gwendal Roué 0618054968 Thank @swiftlyfalling 2016-06-03 08:24:47 +02:00
swiftlyfalling 066a4de15f Added tests
For:
- NSNull.swift
- NSNumber.swift
- NSString.swift
- NSURL.swift
- DatabaseValue+Foundation.swift
2016-06-02 19:25:42 -04:00
swiftlyfalling 5ffac12f5b Increase test coverage of DatabaseQueue 2016-06-02 18:20:08 -04:00
swiftlyfalling b24631345b Increase test coverage of NSData.swift 2016-06-02 18:08:28 -04:00
swiftlyfalling ab3332ed8f Add test of removeTransactionObserver() 2016-06-02 18:07:42 -04:00
swiftlyfalling 58084c6a65 Increase test coverage of DatabaseValue.swift 2016-06-02 18:06:35 -04:00
swiftlyfalling 6664733650 Increase test coverage of FetchRequest.swift
Existing DatabaseValueConvertible tests were only testing the
`extension DatabaseValueConvertible where Self:
StatementColumnConvertible` cases.

Added tests to explicitly cover the cases where something conforms to
`DatabaseValueConvertible` but *not* `StatementColumnConvertible`, and
renamed the old tests.
2016-06-02 18:05:31 -04:00
swiftlyfalling f7a537ab91 Increase test coverage of DatabaseCoder.swift
Test failure cases.
2016-06-02 18:02:08 -04:00
swiftlyfalling 0506d47a4f Increase test coverage of DatabaseDateComponents.swift
Test init from nil NSDateComponents case.
2016-06-02 18:01:31 -04:00
swiftlyfalling e06bcab62b Increase test coverage of Row+Foundation.swift
Add missing test to verify initialization failure if NSDictionary has
invalid (non-String) keys.
2016-06-02 18:01:13 -04:00
swiftlyfalling 90061a4b25 Increase test coverage of StatementArguments+Foundation.swift
Test initializing failure from invalid NSArray, NSDictionary.
2016-06-02 17:59:47 -04:00
Gwendal Roué 5a17fa53cd More TODO 2016-06-02 20:48:57 +02:00
Gwendal Roué 7fa4346cd1 Merge pull request #65 from swiftlyfalling/patch-1
Add language, platform, and license badges to README.md
2016-06-02 15:30:49 +02:00
swiftlyfalling d286041e04 Add language, platform, and license badges to README.md 2016-06-02 09:05:13 -04:00
Gwendal Roué bf0f9e1fa2 Merge pull request #63 from swiftlyfalling/preupdate-hooks
Add support for SQLite Pre-Update Hooks (+ tests)
2016-06-02 13:29:26 +02:00
Gwendal Roué d4c0dd824b Merge pull request #64 from swiftlyfalling/fix-slow-compile
Slow compilation fixes
2016-06-02 13:05:26 +02:00
Gwendal Roué 528ce8c9de README.md 2016-06-02 08:38:55 +02:00
Gwendal Roué cb36991cb2 Cleanup Query Interface protocols 2016-06-02 08:09:44 +02:00
swiftlyfalling f15a4df79e Slow compilation fixes
Implemented a workaround for the cause of the two slowest-to-compile
methods.
2016-06-01 21:12:33 -04:00
swiftlyfalling 901b7a0f12 Add support for SQLite Pre-Update Hooks (+ tests)
If SQLITE_ENABLE_PREUPDATE_HOOK is defined, and GRDB is built with a
custom SQLite library with the functionality (see: GRDBCustomSQLite),
enable support for SQLite Pre-Update Hooks and the new
`willChangeWithEvent` callback on TransactionObservers.
2016-06-01 20:42:21 -04:00
Gwendal Roué 687bcc3469 Merge pull request #62 from swiftlyfalling/Custom-SQLite
Add GRDBCustomSQLite to permit easily building GRDB with a custom, embedded SQLite library
2016-06-01 12:21:38 +02:00
Gwendal Roué a239e435a6 More transaction/savepoints documentation 2016-06-01 09:31:41 +02:00
Gwendal Roué 75728418af More savepoints documentation 2016-06-01 09:28:57 +02:00
swiftlyfalling 893714c968 Update README 2016-05-31 20:42:35 -04:00
swiftlyfalling 5cb4044408 Merge remote-tracking branch 'groue/master' into Custom-SQLite 2016-05-31 17:33:59 -04:00
swiftlyfalling 4966ce447f Add missing Target Dependency for GRDBCustomSQLite frameworks. 2016-05-31 17:33:04 -04:00
swiftlyfalling 8213bf5b6d Update to point to SQLiteLib-USER.xcconfig, and new SQLiteLib 2016-05-31 17:32:09 -04:00
swiftlyfalling 280d90cdc4 More tweaks to GRDBCustomSQLite run script phase 2016-05-31 09:39:42 -04:00
Gwendal Roué df5a327da4 Top-level Database.inSavepoint opens a transaction if the default transaction kind is not DEFERRED 2016-05-31 13:09:33 +02:00
Gwendal Roué e736923312 Typo 2016-05-31 12:14:49 +02:00
Gwendal Roué fe4f932be4 README.md 2016-05-31 09:08:25 +02:00
Gwendal Roué fe7e39776b Documentation 2016-05-31 06:49:35 +02:00
Gwendal Roué da33e480c3 Improve Database.execute() detection of white-space string endings 2016-05-31 06:47:44 +02:00
swiftlyfalling 19a0a7098d Add GRDBCustomSQLite USER configuration files to .gitignore 2016-05-30 21:56:04 -04:00
swiftlyfalling 74d46f201a Tweaks to GRDBCustomSQLite run script build phase 2016-05-30 21:54:07 -04:00
swiftlyfalling 0eec061d01 Improve first-time build of GRDBCustomSQLite
Define CUSTOM_OTHER_SWIFT_FLAGS in GRDB.xcconfig prior to including the
"GRDBCustomSQLite-USER.xcconfig" file.
2016-05-30 21:52:55 -04:00
swiftlyfalling 7c1ad9abab Updated .example files 2016-05-30 21:51:42 -04:00
swiftlyfalling 3ad99011f2 Remove User xcconfig from branch. 2016-05-30 21:17:37 -04:00
swiftlyfalling cb8331f213 Renamed customizable files to <file>-USER, added .example files, preserve user customizations.
Added .example files.
Added build phase script to copy .example files if user configuration
files are not already present.
2016-05-30 21:16:36 -04:00
swiftlyfalling ffa2858d82 Update SQLiteLib subproject commit 2016-05-30 19:56:05 -04:00