mirror of
https://github.com/circuithub/rel8.git
synced 2024-09-12 00:07:34 +03:00
This adds a new type `QualifiedName` for named PostgreSQL objects (tables, views, functions and sequences) that can optionally be qualified by a schema. Previously only `TableSchema` could be qualified in this way. `QualifiedName` has an `IsString` instance so the common case (where the schema is `Nothing`) doesn't have to care about schemas (if `OverloadedStrings` is enabled). This also refactors `TableSchema` to use `QualifiedName` for its `name` field and drops its `schema` field. Thanks to @elldritch for the bug report and the inspiration. |
||
---|---|---|
.. | ||
Rel8/Generic/Rel8able | ||
Main.hs |