>
> Hello,
>
> since I didn't find a direct way to create a VIEW within SQLalchemy
> v0.4, I use the
> "text"-feature to do that with a SQL/DDL statement, which is maybe not
> elegant, but works...
>
> Is there a way to get information about Views? (Which Views exist and
> which columns do they provide?)
we dont provide a function for this currently.
adding reflection for views is not a big deal, but the decision to be
made is how it would be expressed in the API, either as Table(....,
view=True), or View(...). we'd have to decide how view-aware we want
SA to be (i.e. would View act read-only, etc.. though I guess VIEWs
aren't necessarily purely read-only in some cases ?).
<RANT ON>
Well, since the disciples of SQL keep telling me how much clearer it
is than other database languages... The Merriam-Webster defines view
as:
1: extent or range of vision : sight <tried to keep the ship in view>
<sat high in the bleachers to get a good view>
2: the act of seeing or examining : inspection; also : survey <a view
of English literature>
3 a: a mode or manner of looking at or regarding something
b: an opinion or judgment colored by the feeling or bias of its
holder <in my view the plan will fail>
4: scene prospect <the lovely view from the balcony>
5: the foreseeable future <no hope in view>
6: a pictorial representation
Touch, change, and update have very different definitions. So, for
clarity, view should mean... view, regardless of what mangling of
English various implementations of SQL try to perform. Look but don't
touch. Read-only.
<RANT OFF>
--
Ubuntu Linux DC LoCo
Washington, DC
http://dc.ubuntu-us.org/