Commit Graph
185 Commits
Author SHA1 Message Date
Gwendal Roué ffaabdfd62 Toward improved DatabaseRegion for joined requests 2018-05-01 17:20:37 +02:00
Gwendal Roué 8e2cdeebc3 Cleanup 2018-05-01 15:03:36 +02:00
Gwendal Roué 66a425f718 Thread-safe table name disambiguation, via SQLGenerationContext. Merge SQLTableQualifier into TableAlias. 2018-05-01 14:44:51 +02:00
Gwendal Roué 344eba821f Spot more qualifier/alias problems 2018-04-30 19:31:56 +02:00
Gwendal Roué 8d5e57873e Documentation 2018-04-30 15:33:16 +02:00
Gwendal Roué e6f084d397 Law of Demeter 2018-04-30 13:59:20 +02:00
Gwendal Roué 09458c1d37 Documentation, move asRequest(of:) to QueryInterfaceRequest in order to avoid AnyFetchRequest contamination 2018-04-30 13:41:20 +02:00
Gwendal Roué 9a379fc1bc Use DatabasePromise where relevant 2018-04-30 12:57:12 +02:00
Gwendal Roué a45d019472 Simplification
Rename AssociationMapping to JoinCondition
Replace AssociationMappingRequest enum with ForeignKeyJoinConditionRequest struct
Rename AssociationChainOperator to AssociationJoinOperator, and "chain" to "join"
2018-04-30 12:50:38 +02:00
Gwendal Roué 50dd846a36 Remove useless constraint on Association.LeftAssociated and Association.RightAssociated 2018-04-30 12:25:07 +02:00
Gwendal Roué dddeff458a none() is no longer a requirement of FilteredRequest 2018-04-30 09:02:05 +02:00
Gwendal Roué ccc259c25c Documentation 2018-04-30 08:55:16 +02:00
Gwendal Roué 5e7235307a Cleanup 2018-04-30 08:36:29 +02:00
Gwendal Roué 5747d1cff0 No more #if swift(>=4.1) 2018-04-30 08:26:23 +02:00
Gwendal Roué e05a64f1cb Cleanup 2018-04-30 08:11:16 +02:00
Gwendal Roué d6f088609e Prevent chaining required association behind an optional one 2018-04-29 18:34:49 +02:00
Gwendal Roué 4586eb9a82 Associations Documentation 2018-04-29 18:27:59 +02:00
Gwendal Roué 3e46942f30 Associations 2018-04-29 18:16:39 +02:00
Gwendal Roué 26108badd4 request.reversed() has no effect when request is not already ordered 2018-04-26 12:51:29 +02:00
Gwendal Roué d09afc8929 explicitely -> explicitly 2018-04-25 19:35:03 +02:00
Gwendal Roué 4409b07ef5 ColumnExpression documentation 2018-04-23 08:39:19 +02:00
Gwendal Roué f2ae44384f Rename SQLColumnExpression to ColumnExpression 2018-04-22 18:13:47 +02:00
Gwendal Roué 29b364d5cb Introduce SQLColumnExpression 2018-04-22 14:56:40 +02:00
Gwendal Roué b2d2d17dda #330 follow-up: extract QualifiedAllColumns from AllColumns 2018-04-22 07:26:08 +02:00
Gwendal Roué 2dae6d945f #330 follow-up: extract QualifiedColumn from Column 2018-04-22 07:17:26 +02:00
Gwendal Roué 7aacaef2cd Foster autoIncrementedPrimaryKey in documentation 2018-04-21 20:11:34 +02:00
Gwendal Roué 73e89f76aa Introduce TableDefinition.autoIncrementedPrimaryKey 2018-04-21 19:41:21 +02:00
Gwendal Roué c21a330dce Cleanup 2018-04-21 19:40:30 +02:00
Gwendal Roué f4ab65e399 Fix typo 2018-04-21 17:21:16 +02:00
Gwendal Roué d63565f191 Documentation for joined(operator:) 2018-04-21 17:17:46 +02:00
Gwendal Roué c691625b15 Dedicated implementations for AND and OR sql operators. Introduce joined(operator:) 2018-04-21 16:53:44 +02:00
Gwendal Roué 79c7dd03a5 [Whitespace] 2018-04-11 13:10:15 +02:00
Gwendal Roué c34380cf5c SQLExpression and SQLSelectable are no longer PATs 2018-04-11 08:19:15 +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é 03f5a83cbf Introduce and DatabaseRequest and SelectStatementRequest on top of FetchRequest 2018-04-08 12:08:51 +02:00
Gwendal Roué d24f79ee4d Merge branch 'master' into GRDB3 2018-03-31 14:36:43 +02:00
Gwendal Roué 1cbe60a13f Better checks for Swift < 4.1 (thanks @hartbit!) 2018-03-12 18:33:06 +01:00
Gwendal Roué a75e519294 SE-0185: let Swift 4.1 generate as much Equatable and Hashable conformance as possible 2018-03-12 18:20:10 +01:00
Gwendal Roué 85d3c584ef Swift 4.1 compatibility (SE-0184 , SE-0187) 2018-03-12 18:20:10 +01:00
Gwendal Roué 1a91020a84 After all, FetchableRecord and PersistableRecord 2018-02-27 19:25:49 +01:00
Gwendal Roué 08a08cd74f Rename MutablePersistable to EncodableRecord 2018-02-27 18:46:32 +01:00
Gwendal Roué 639de6ca11 Rename TableMapping to TableRecord 2018-02-27 13:28:29 +01:00
Gwendal Roué f605e049fd Rename TypedRequest to FetchRequest, drop Request 2018-02-26 13:12:33 +01:00
Gwendal Roué b4922f60a2 SE-0185: let Swift 4.1 generate as much Equatable and Hashable conformance as possible 2018-02-25 09:24:23 +01:00
Gwendal Roué d8c411ad52 Swift 4.1 compatibility (SE-0184 , SE-0187) 2018-02-25 09:24:23 +01:00
Gwendal Roué 5e4406e78c Improves documentation (addresses #306) 2018-02-24 07:54:42 +01:00
Gwendal Roué 79ed15c38c Deprecate Database.columnCount(in:) in favor of Database.columns(in:). Update doc and changelog 2018-02-22 14:00:19 +01:00
Gwendal Roué 288144f347 splittingRowAdapters(columnCounts:), ScopeAdapter(nestedScopes:), RowConvertible?(leftJoinedRow:), TableMapping.numberOfSelectedColumns(_:), support for nested codable records 2018-02-21 23:15:13 +01:00
Gwendal Roué 3bdfdaa40a TableMapping.selectionSQL(_:) 2018-02-21 13:51:37 +01:00
Gwendal Roué 2289ed9d95 Cleanup Jazzy documentation from most redundant definitions and experimental APIs 2018-01-21 16:57:43 +01:00