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
Gwendal Roué
c4ef161a83
Rename Statement.region and Request.region to fetchedRegion
2018-01-17 06:54:10 +01:00
Gwendal Roué
938977bbca
Cleanup DatabaseRegion: no more public intersection, no more public way to specify rowids
2018-01-16 13:58:55 +01:00
Gwendal Roué
33b5c6c616
Rename DatabaseSelectionInfo to DatabaseRegion
2018-01-16 08:23:08 +01:00
Gwendal Roué
fc1b4a6f35
Complete refactoring of SelectStatement.SelectionInfo into DatabaseSelectionInfo
2018-01-15 22:28:43 +01:00
Gwendal Roué
9c8a9fbe32
SelectionInfo.rowIds contains the rowIds fetched by a request
2018-01-14 22:05:18 +01:00
Gwendal Roué
c940675bf3
Fix typo
2018-01-12 09:12:35 +01:00
Gwendal Roué
9a2bf923d2
Update CHANGELOG and README for new key-filtering requests
2018-01-11 20:04:49 +01:00
Gwendal Roué
9b27c0c651
WIP TableMapping.filter(key: [:]) and TableMapping.filter(keys: [[:], ])
2018-01-11 19:34:28 +01:00
Gwendal Roué
2af85e7347
WIP TableMapping.filter(key:1) and TableMapping.filter(keys: [1, 2, 3])
2018-01-11 18:09:01 +01:00
Gwendal Roué
8ce2c09b52
TableAlteration.add(column:type:) accepts nil type
2017-11-29 20:11:28 +01:00
Gwendal Roué
caf051f19d
Improve jazzy documentation layout
2017-10-31 13:37:48 +01:00
Gwendal Roué
c2fb23c69c
Stop using String.characters view
2017-10-10 08:15:28 +02:00
Gwendal Roué
a91da59448
Database.primaryKey(_:) no longer returns an Optional. PrimaryKeyInfo.isRowID tells whether the primary key is the rowed.
2017-09-15 09:00:56 +02:00
Gwendal Roué
a7ecf41e3b
QueryInterfaceRequest.deleteAll() now honors the order and limit clauses. New Set(cursor) initialiser.
2017-09-07 19:22:21 +02:00
Gwendal Roué
8ccc23333d
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
2017-08-23 08:16:30 +02:00
Gwendal Roué
c700f5fc68
Move TableMapping deletion methods to MutablePersistable (prevent TableMapping from being able to modify the database)
2017-08-18 17:15:10 +02:00
Gwendal Roué
376d295853
Replace TableMapping.selectsRowID with TableMapping.databaseSelection
2017-08-18 16:27:24 +02:00
Gwendal Roué
2b2e92c810
Cleanup
2017-07-21 12:13:03 +02:00
Gwendal Roué
ec163e94eb
Implement fetchCursor(_:keys:), fetchAll(_:keys:), and fetchOne(_🔑 ) on top of the Query Interface
2017-07-21 09:13:20 +02:00
Gwendal Roué
cc12c046b9
func === (lhs: SQLExpressible?, rhs: SQLCollatedExpression) bugfix
2017-07-18 09:00:49 +02:00
Gwendal Roué
29a26800b7
Cleanup
2017-07-17 20:20:20 +02:00
Gwendal Roué
bc5eeb3b3a
expr == DatabaseValue.null is converted to expr IS NULL.
2017-07-17 20:19:19 +02:00
Gwendal Roué
5f2d6f8e2f
Table creation API enhancements
2017-07-01 16:44:33 +02:00
Gwendal Roué
83c3745165
Documentation
2017-06-30 07:47:14 +02:00
Gwendal Roué
56a4a964b7
QueryInterfaceRequest.order() clears the isReversed flag
2017-06-30 07:47:13 +02:00
Gwendal Roué
56869577d4
Documentation
2017-06-20 07:54:19 +02:00
Gwendal Roué
cbb607b6b0
SQLSpecificExpressible.collating(_:) inline documentation
2017-06-20 07:54:19 +02:00