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é
b8fc762e11
Cleanup
2018-04-21 19:28:58 +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é
4e57bf5a0e
Fix a youth error: DatabaseDateComponents initializer from DateComponents is no longer failable
2018-04-21 15:27:21 +02:00
Gwendal Roué
223d0a3fd3
Merge remote-tracking branch 'origin/development' into GRDB3
2018-04-21 15:20:36 +02:00
Gwendal Roué
6c5d6ba631
SQLiteDateParser: tighten vsscanf format
2018-04-21 10:37:03 +02:00
Gwendal Roué
1311f6c87c
SQLiteDateParser: fix nanosecond parsing
2018-04-21 10:17:07 +02:00
Gwendal Roué
632bce5521
SQLiteDateParser: don't parse garbage into nanoseconds
2018-04-20 19:41:34 +02:00
Gwendal Roué
316d28746b
SQLiteDateParser: optimize nanoseconds parsing
2018-04-20 19:26:42 +02:00
Gwendal Roué
9efe4a6efa
Add a sanity check
2018-04-20 19:18:46 +02:00
Gwendal Roué
85fbf64068
Add missing imports (should fix travis issues)
2018-04-20 19:17:24 +02:00
Gwendal Roué
282255b841
No need for useScanfStrategy any longer
2018-04-20 19:14:58 +02:00
Gwendal Roué
266040747e
Date adopts StatementColumnConvertible
2018-04-20 18:42:12 +02:00
Gwendal Roué
11a4a6acbd
Documentation
2018-04-20 18:41:58 +02:00
Gwendal Roué
c70689fe54
Check useScanfStrategy in DatabaseDateComponents.init(sqliteStatement:index:)
...
...so that we can eventually compare gains
2018-04-20 18:34:19 +02:00
Gwendal Roué
936b31f1f0
DatabaseDateComponents adopts StatementColumnConvertible
...
We'll need benchmarks to evaluate the gain, here
2018-04-20 14:04:12 +02:00
Gwendal Roué
8915672ce5
SQLiteDateParser: parse C strings
...
Since the goal of this PR is efficiency, we'll soon parse Date and
DatabaseDateComponents right from raw SQLite buffers.
2018-04-20 13:51:20 +02:00
Gwendal Roué
0640f90fc1
(whitespace)
2018-04-20 13:32:50 +02:00
Gwendal Roué
d1a0e8d906
SQLiteDateParser.components(from:) is not public
2018-04-20 13:31:57 +02:00
Gwendal Roué
e9a668ca56
SQLiteDateParser: no more static methods
2018-04-20 13:31:35 +02:00
Gwendal Roué
27194c802d
SQLiteDateParser: use withUnsafeMutablePointer instead of allocations
...
OK, not really: the nanosecond components remains in the heap.
But we may find a way to put 11 chars on the stack.
2018-04-20 13:30:26 +02:00
Gwendal Roué
7aabfeaeac
SQLiteDateParser: get rid of the mutex
2018-04-20 13:09:22 +02:00
Gwendal Roué
e45642b6c1
Cleanup
2018-04-19 21:48:12 +02:00
Gwendal Roué
b550e2bfd5
Cleanup
2018-04-19 21:45:40 +02:00
Gwendal Roué
4b3854d05d
Finally, the meat: perform breadth-first search in let record = row[key], and in FetchableRecord & Decodable
2018-04-19 20:46:58 +02:00
Gwendal Roué
0362ae76ea
Rename Row.Scopes to Row.ScopesView. Move breadth-first lookup to a new view, row.scopesTree, of type Row.ScopesTreeView
2018-04-19 20:29:11 +02:00
Gwendal Roué
098c11baf2
Row.Scopes.lookup(_:) performs a breadth-first lookup of a scope name
2018-04-19 19:50:43 +02:00