Are sql-views supported in exposed? Like creating ...
# exposed
m
Are sql-views supported in exposed? Like creating them with a specific query and selecting from them=
r
I cannot see why selecting would cause any problem with exposed, since they from that point of view behave just like a table. Of course modifying them is probably a no-go, not even sure if it's possible in raw SQL, never tried, since it seems like a universally bad idea to even try creating them and that from exposed, I'm not sure, but if I understood correctly, doing migrations from exposed is also only viable with the absolutely first version or if your migrations never involve changing existing tables. Once you're on a running system and want to change things (if I understood correctly) you'll want a dedicated migration tool anyway, and can thus deal with views there and please correct me, if I'm wrong, I haven't dived deep here, so my knowledge is far from complete 😉
l
no, Exposed does not have the concept of a view, unfortunately.