Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Documentation
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
snac
Documentation
Commits
6bc6481b
Commit
6bc6481b
authored
Feb 17, 2016
by
Tom Laudeman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing date range docs
parent
15e47f95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Schema SQL.md
Specifications/Schema SQL.md
+2
-3
No files found.
Specifications/Schema SQL.md
View file @
6bc6481b
...
@@ -42,10 +42,10 @@ change.
...
@@ -42,10 +42,10 @@ change.
### How dates are stored
### How dates are stored
We have chosen to store date as a comprehensive date range
. This is a single record type, setting several
We have chosen to store date as a comprehensive date range
record. This is a single record type, setting
attributes as appropriate, and leaving unused fields empty when necessary. Thus a single date and date range
attributes as appropriate, and leaving unused fields empty when necessary. Thus a single date and date range
are both the same record type, but the single date lacks a toDate, and is_range=false. Many fields of a date
are both the same record type, but the single date lacks a toDate, and is_range=false. Many fields of a date
range may be missing (and explicitly noted as
such) and l
ack of precision can be captured as well.
range may be missing (and explicitly noted as
missing). L
ack of precision can be captured as well.
Date sets are handled relationally by using multiple date_range records. Relational data modeling needs no
Date sets are handled relationally by using multiple date_range records. Relational data modeling needs no
"date set" table.
"date set" table.
...
@@ -81,7 +81,6 @@ create table date_range (
...
@@ -81,7 +81,6 @@ create table date_range (
fk_id int, -- table.id of the related record
fk_id int, -- table.id of the related record
primary key(id, version)
primary key(id, version)
);
);
```
```
To and from dates are ISO strings. to/from _not_before/_not_after deal with lack of precision. Many dates are
To and from dates are ISO strings. to/from _not_before/_not_after deal with lack of precision. Many dates are
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment