circuithub / rel8

Hey! Hey! Can u rel8?
https://rel8.readthedocs.io
Other
150 stars 38 forks source link

Allow for view creation or the replacing of an existing views #209

Closed gpampara closed 1 year ago

gpampara commented 1 year ago

This PR adds a simple change to allow for the "replace" functionality of views within PostgreSQL.

Please say if anything should change within these changes.

shane-circuithub commented 1 year ago

I think what you have here is fine, but it might be worth defining:

data CreateView = Create | CreateOrReplace

and using that instead where you currently have Bool. But otherwise it's fine.