Gwendal Roué
09e85ba341
SQLString everywhere
2019-02-17 13:24:38 +01:00
Gwendal Roué
f27a1e9504
request.select(SQLString)
2019-02-17 13:24:38 +01:00
Gwendal Roué
e924587236
Extract generation of SQL SELECT queries into SQLSelectQueryGenerator
2019-02-03 14:56:28 +01:00
Gwendal Roué
27c6390635
More Association trimming
2019-02-02 17:53:01 +01:00
Gwendal Roué
e62cfe086c
Documentation
2019-02-02 17:23:50 +01:00
Gwendal Roué
40f6b351ea
Rename QueryInterfaceQuery to SQLSelectQuery
2019-02-02 17:15:29 +01:00
Gwendal Roué
9addac6f54
Rename QueryOrdering to SQLRelation.Ordering
2019-02-02 16:43:10 +01:00
Gwendal Roué
5a942d7213
More trimming: QueryInterfaceQuery now embeds a SQLRelation
2019-02-02 16:20:43 +01:00
Gwendal Roué
bb972a351a
Refactor JoinQuery into SQLRelation
2019-02-02 15:39:18 +01:00
Gwendal Roué
5f037c7e4e
Replace JoinQuery initializer with QueryInterfaceRequest.asJoinQuery()
2019-02-02 14:54:31 +01:00
Gwendal Roué
b180fc37bb
Trim associations
2019-02-02 10:38:47 +01:00
Gwendal Roué
2938a95270
Inline documentation
2018-10-08 08:24:14 +02:00
Gwendal Roué
39bc140dc8
Rename Annotation to AssociationAggregate
2018-10-07 11:39:46 +02:00
Gwendal Roué
903694d095
First annotation: HasManyAssociaton.count
2018-10-05 18:50:33 +02:00
Gwendal Roué
168d2850ab
Introduce groupByPrimaryKey()
2018-10-05 18:50:33 +02:00
Gwendal Roué
8af33c4fc9
Introduce select(..., as:)
...
Record.select(..., as: Value.self) is equivalent to Record.select(...).asRequest(of: Value.self).
It somewhat improves the readability of some requests:
Player.select(max(Column("score")), as: Int.self)
2018-08-19 12:25:27 +02:00
Gwendal Roué
fa31c484da
OrderedRequest now waits for the database connection before ordering is computed
2018-06-05 22:46:02 +02:00
Gwendal Roué
756863152c
Fix documentation typos
2018-05-07 19:33:07 +02:00
Gwendal Roué
2d008b8c54
Yet another request protocols update, in order to empower RxGRDB
2018-05-05 11:57:17 +02:00
Gwendal Roué
cdad6fa313
Introduce DerivableRequest
2018-05-04 14:19:27 +02:00
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