Re[2]: newbie question - writing derived view back to db

Marcin Krol <[email protected]>
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
Hello Brian,

BK> vw2 = st.getas("test_save[a:i,b:s"])
<snip>

OK, I've tried what you wrote and it works, thanks.

However, there's another silly problem here remaining: how to delete
the old view 'test' from the db and rename 'test_save' to 'test'?

I've checked with Kitviewer that deleting all the rows from test
doesn't eliminate the view itself (it just becomes empty, but it's
still there), while view.rename('oldname', 'newname') is renaming
properties and not views.

I can't find anything about deleting the view itself from the db in
the docs either. In SQL there's obviously DROP TABLE, but I can't find
anything here that would be an equivalent of such an operation.

Sorry for questions about all those trivial issues, if I could find it
in the docs I would not bother you with this...



-- 
Best regards,
 Marcin                            mailto:[email protected]

_____________________________________________
Metakit mailing list  -  [email protected]
http://www.equi4.com/mailman/listinfo/metakit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.