Skip to content

Commit

Permalink
Implement schema typechecker
Browse files Browse the repository at this point in the history
This closes circuithub#274 and circuithub#186, allowing the generation of CREATE TABLE
statements from a TableSchema, as well as testing the table's schema in
the database against the schema implied by the TableSchema type.

Co-authored-by: David Kraeutmann <kane@kane.cx>
  • Loading branch information
abigailalice and KaneTW committed Aug 3, 2024
1 parent 4c18447 commit 4b343ce
Show file tree
Hide file tree
Showing 4 changed files with 1,011 additions and 7 deletions.
7 changes: 6 additions & 1 deletion rel8.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ library
, case-insensitive
, comonad
, contravariant
, containers
, data-textual
, hasql ^>= 1.6.1.2
, network-ip
Expand Down Expand Up @@ -66,6 +67,7 @@ library
Rel8.Expr.Text
Rel8.Expr.Time
Rel8.Tabulate
Rel8.Table.Verify

other-modules:
Rel8.Aggregate
Expand Down Expand Up @@ -237,7 +239,8 @@ library
test-suite tests
type: exitcode-stdio-1.0
build-depends:
base
aeson
, base
, bytestring
, case-insensitive
, containers
Expand All @@ -252,10 +255,12 @@ test-suite tests
, tasty
, tasty-hedgehog
, text
, these
, time
, tmp-postgres ^>=1.34.1.0
, transformers
, uuid
, vector

other-modules:
Rel8.Generic.Rel8able.Test
Expand Down
Loading

0 comments on commit 4b343ce

Please sign in to comment.