Commit Graph
5334 Commits
Author SHA1 Message Date
Gwendal Roué 4e659c550e Rename RowScopes to Row.Scopes. Harmonize row derivation. 2018-04-19 19:18:02 +02:00
Gwendal Roué 9cb1bac2fc Update documentation for scoped rows 2018-04-19 14:46:23 +02:00
Gwendal Roué 33d65e85d8 Update documentation for scoped rows 2018-04-19 14:44:05 +02:00
Gwendal Roué 7e260cf537 Update tests for new Row.scopes view 2018-04-19 14:41:49 +02:00
Gwendal Roué 57932235ba Introduce RowScopes collection, a view of a row's scopes 2018-04-19 09:07:16 +02:00
Gwendal Roué 2daba261a2 GRDB3 TODO 2018-04-19 08:09:46 +02:00
Gwendal Roué 9a6daedd6d Cleanup 2018-04-18 07:31:11 +02:00
Gwendal Roué a2c06c1bdb Cleanup 2018-04-16 14:05:36 +02:00
Gwendal Roué 2a2c5a772f Cleanup 2018-04-16 14:05:04 +02:00
Gwendal Roué 969fac5c4b Cleanup 2018-04-16 14:01:54 +02:00
Gwendal Roué d39f02113c Restore T.fetchXXX(db, request) APIs which were removed in PR #311 2018-04-16 08:50:55 +02:00
Gwendal Roué c9dc1223dd Harmonize dbQueue.writer with dbPool.writer 2018-04-15 20:14:25 +02:00
Gwendal Roué ba848d2d53 Less TODO 2018-04-15 19:57:36 +02:00
Gwendal Roué 1c9c3d4399 Merge pull request #332 from groue/GRDB3-DatabaseWriterRobustness
Implicit transaction in DatabasePool.write and DatabaseQueue.write
2018-04-15 19:51:52 +02:00
Gwendal Roué 090f872e80 Update documentation: don't mention dbQueue.inDatabase unless necessary 2018-04-15 18:09:34 +02:00
Gwendal Roué 3d9c1a2739 Cleanup 2018-04-15 17:26:37 +02:00
Gwendal Roué c97c260613 Update documentation about transactions 2018-04-15 17:15:13 +02:00
Gwendal Roué a46505e907 Cleanup 2018-04-15 14:30:12 +02:00
Gwendal Roué ea3f22c8a4 Fix tests that were failing now that DatabaseQueue.inDatabase runs inside a transaction 2018-04-13 18:07:24 +02:00
Gwendal Roué d78479e4af [WIP] DatabaseQueue.inDatabase runs inside a transaction 2018-04-13 08:56:03 +02:00
Gwendal Roué 267371ba90 Tests that DatabasePool.write opens a transaction 2018-04-13 08:20:17 +02:00
Gwendal Roué cc136922e5 Typo 2018-04-12 14:07:38 +02:00
Gwendal Roué 02927106ca It looks like documentation wants that DatabaseQueue automatically opens transactions as well... 2018-04-12 14:06:13 +02:00
Gwendal Roué 1275ebc2b1 Layout 2018-04-12 14:02:31 +02:00
Gwendal Roué 2ac2a148c6 Typo 2018-04-12 14:00:19 +02:00
Gwendal Roué 1a5f432ee1 Update documentation for DatabasePool.writeWithoutTransaction 2018-04-12 13:59:10 +02:00
Gwendal Roué 5df4e713b6 GRDB3 TODO 2018-04-12 12:39:29 +02:00
Gwendal Roué 20d2c74f87 Update documentation for DatabasePool.writeWithoutTransaction 2018-04-12 12:02:25 +02:00
Gwendal Roué bc244802c0 Update tests for DatabasePool/Writer.writeWithoutTransaction 2018-04-12 07:58:23 +02:00
Gwendal Roué bd2f17ee10 Fixes needed by DatabasePool/Writer.writeWithoutTransaction 2018-04-12 07:58:01 +02:00
Gwendal Roué 563a4d5c71 Introduce DatabaseWriter.writeWithoutTransaction 2018-04-11 20:03:18 +02:00
Gwendal Roué 78e6241d16 DatabaseWriter.write now guarantees that eventual concurrent readers don't see any changes until all changes are executed. DatabasePool.write thus wraps changes in a transaction. 2018-04-11 20:03:18 +02:00
Gwendal Roué d08f630a2c Merge pull request #331 from groue/GRDB3-RowDescription
Improve Row descriptions
2018-04-11 20:02:31 +02:00
Gwendal Roué 26912e746b Update documentation for new Row description format 2018-04-11 15:49:16 +02:00
Gwendal Roué fa68b62be1 Improve Row.description & Row.debugDescription 2018-04-11 13:39:44 +02:00
Gwendal Roué 07a1d4d1b8 Database.rollback: add missing dispatch queue check 2018-04-11 13:21:56 +02:00
Gwendal Roué 9c6b48980c Database.isInsideTransaction: add missing dispatch queue check 2018-04-11 13:18:34 +02:00
Gwendal Roué 79c7dd03a5 [Whitespace] 2018-04-11 13:10:15 +02:00
Gwendal Roué b252c689df Merge pull request #330 from groue/GRDB3-RemovePATs
Expressions are no longer PATs
2018-04-11 13:08:46 +02:00
Gwendal Roué c34380cf5c SQLExpression and SQLSelectable are no longer PATs 2018-04-11 08:19:15 +02:00
Gwendal Roué 75ab9d615c Merge pull request #329 from groue/GRDB3-RequestDerivation
Introduce request derivation protocols
2018-04-11 08:04:30 +02:00
Gwendal Roué b9333fab34 Update a few tests that have been broken by 64899e5a39.
(Some expressions which were not safely wrapped inside parenthesis now are wrapped inside parenthesis)
2018-04-10 13:45:31 +02:00
Gwendal Roué 64899e5a39 Introduce SelectionRequest, FilteredRequest, AggregatingRequest, and OrderedRequest.
Those request protocols allow types that are not QueryInterfaceRequest to expose the same derivation API. This is a necessary step towards associations.
2018-04-10 13:44:23 +02:00
Gwendal Roué 80889dc9d2 Merge pull request #328 from groue/GRDB3-DatabaseRequest
Allow observation of complex fetching strategies
2018-04-10 12:50:37 +02:00
Gwendal Roué b7239c4b6f Document request protocols 2018-04-08 13:18:02 +02:00
Gwendal Roué 67ae1d4cf0 Document request protocols 2018-04-08 13:09:24 +02:00
Gwendal Roué 03f5a83cbf Introduce and DatabaseRequest and SelectStatementRequest on top of FetchRequest 2018-04-08 12:08:51 +02:00
Gwendal Roué 77bb2ecc82 Merge branch 'SQLite-3.22.0' of github.com:groue/GRDB.swift into GRDB3 2018-04-08 11:51:56 +02:00
Gwendal Roué 3160b65172 Upgrade SQLiteCustom to 3.22.0 2018-04-04 13:23:46 +02:00
Gwendal Roué 65b3ba1d12 TODO 2018-04-04 09:49:38 +02:00