Commit 9d3fefd
Implement schema typechecker
This closes #274 and #186, allowing the generation of CREATE TABLE
statements from a TableSchema, as well as checking a TableSchema against
a database to determine if the tables are defined correctly in the
database to be read from/written to by rel8.
It also adds tests for the creation and type checking of tables, to
ensure they succeed/fail in appropriate cases.
Co-authored-by: David Kraeutmann <[email protected]>1 parent 2a38a0d commit 9d3fefd
File tree
4 files changed
+1104
-6
lines changed- src/Rel8/Table
- tests
- Rel8/Generic/Rel8able
4 files changed
+1104
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
0 commit comments