Skip to content

Commit 5c212e4

Browse files
committed
wip
1 parent 4772c44 commit 5c212e4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Sources/StructuredQueriesCore/Documentation.docc/Articles/DefiningYourSchema.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ different representations:
256256
* Int column interpreted as number of seconds since Unix epoch.
257257
* Double column interpreted as a Julian day (number of days since November 24, 4713 BC).
258258
259-
By default, StructuredQueries will bind and decode dates as ISO-8601 text. If you want to the
260-
library to use a different representation (_i.e._ integer or double), you can provide an explicit
261-
query representation to the `@Column` macro's `as:` argument.
262-
``Foundation/Date/UnixTimeRepresentation`` will store the date as an integer, and
263-
``Foundation/Date/JulianDayRepresentation`` will store the date as a floating point number.
259+
By default, StructuredQueries will bind and decode dates as ISO-8601 text. If you want the library
260+
to use a different representation (_i.e._ integer or double), you can provide an explicit query
261+
representation to the `@Column` macro's `as:` argument. ``Foundation/Date/UnixTimeRepresentation``
262+
will store the date as an integer, and ``Foundation/Date/JulianDayRepresentation`` will store the
263+
date as a floating point number.
264264
265265
For example:
266266
@@ -292,9 +292,9 @@ And StructuredQueries will take care of formatting the value for the database:
292292
}
293293
}
294294
295-
When querying against a date column with a Swift date, you will need to explicitly bundle up the
296-
Swift date into the appropriate representation to use various query helpers. This can be done using
297-
the `#bind` macro:
295+
When querying against a date column with a custom representation, you will need to explicitly bundle
296+
the Swift date up into the appropriate representation to use various query helpers. This can be done
297+
using the `#bind` macro:
298298
299299
```swift
300300
Reminder.where { $0.created > #bind(startDate) }
@@ -315,9 +315,9 @@ To use such custom representations, you can provide it to the `@Column` macro's
315315
}
316316
```
317317
318-
When querying against a UUID column with a Swift UUID, you will need to explicitly bundle up the
319-
Swift UUID into the appropriate representation to use various query helpers. This can be done using
320-
the `#bind` macro:
318+
When querying against a UUID column with a custom representation, you will need to explicitly bundle
319+
the Swift UUID up into the appropriate representation to use various query helpers. This can be done
320+
using the `#bind` macro:
321321
322322
```swift
323323
Reminder.where { $0.id != #bind(reminder.id) }

0 commit comments

Comments
 (0)