Gwendal Roué
1bf7f67008
Update inline documentation with singular table names
2018-05-01 20:32:18 +02:00
Gwendal Roué
ab36df6e0f
Use "finalized" to describe queries that are ready for SQL generation
2018-05-01 17:42:39 +02:00
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é
09458c1d37
Documentation, move asRequest(of:) to QueryInterfaceRequest in order to avoid AnyFetchRequest contamination
2018-04-30 13:41:20 +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é
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é
c691625b15
Dedicated implementations for AND and OR sql operators. Introduce joined(operator:)
2018-04-21 16:53:44 +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é
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é
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é
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é
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é
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é
a3ad726111
Cleanup
2017-06-20 07:54:19 +02:00
Gwendal Roué
8ea215931e
Refactor Request
...
Rename TypedRequest's associated type from `Fetched` to `RowConverter`, because if TypedRequest needs a type that can decode rows, the type of the decoded rows does not need to be identical to the decoder type.
Introduce AdaptedRequest and AdaptedTypedRequest as results of Request.adapted(_:) and TypedRequest.adapted(_:), instead of the generic AnyRequest and AnyTypedRequest.
2017-06-20 07:54:19 +02:00
Gwendal Roué
dae4ae1c6b
Reduce internal coupling
2017-04-22 11:12:43 +02:00
Gwendal Roué
9b4e55be28
Documentation for Request.fetchCount() ( https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884 )
2017-03-01 08:24:43 +01:00
Gwendal Roué
42ebffc4fc
Keep Request.fetchCount() simple ( https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884 )
2017-03-01 07:56:17 +01:00
Gwendal Roué
2d2c596f75
Add Request.fetchCount(). Implements https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884
2017-03-01 05:32:52 +01:00
Gwendal Roué
cb08660a78
Rename FetchRequest -> Request
2016-12-08 13:56:05 +01:00
Gwendal Roué
89e7a62d99
Introduce AnyFetchRequest, TypedFetchRequest, AnyTypedFetchRequest
2016-12-07 22:21:19 +01:00
Gwendal Roué
74e89c542a
Cleanup
2016-12-07 18:45:14 +01:00
Gwendal Roué
527aed0ea3
Documentation
2016-11-29 14:17:41 +01:00
Gwendal Roué
ac6c7f6a35
#147 : fetchAll() and fetchOne() can now throw database errors.
2016-11-26 22:38:40 +01:00
Gwendal Roué
af6e31dcdf
#147 : The fetch method have been removed, along with DatabaseSequence and DatabaseIterator.
2016-11-26 21:14:10 +01:00
Gwendal Roué
a548212f27
#147 : tests for QueryInterfaceRequest.fetchCursor(_:) and (RowConvertible & TableMapping).fetchCursor(_:)
2016-11-26 11:20:35 +01:00
Gwendal Roué
612c963105
TODO
2016-11-26 10:23:41 +01:00
Gwendal Roué
b9fea2ea12
Introduce DatabaseCursor (addresses #147 )
...
let cursor = try Row.fetchCursor(db, "SELECT * FROM persons)
while let row = try cursor.step() { ... }
2016-11-25 18:34:16 +01:00
Gwendal Roué
2fd3ded6e2
TableMapping.none()
2016-10-17 09:09:17 +02:00
Gwendal Roué
fc49643860
Remove QueryInterfaceRequest public initializer
2016-10-08 13:06:46 +02:00