>> const char dbview[] => "dbview[url:S,type:I,artist:S,album:S,title:S,> >comment:S,genre:S,track:I,year:I,time:I,size:I,> playcount:I,guid:S]";>> and I want >to extract tracks or playlist files. How? >> m_dbview = m_database->GetAs (dbview); > c4_View vtitles = > m_dbview.Select(m_pType[kTypeTrack]+m_pType[kTypePlaylist]); >> would appear to ask for things that are both a track *and* a playlist.> What's the >proper way to ask for a track *or* playlist? >probably: > c4_View v1 = m_dbview.Select(m_pType[kTypeTrack]); > c4_View v2 = m_dbview.Select(m_pType[kTypePlaylist]); > c4_View vtitles = v1.Union(v2).
> Also somewhere I saw that Find is faster than Select if you are just> going to >iterate through the selected view. Is this correct? >Yes, maybe. Under say 10,000 rows I wouldn't expect much difference. So is there also a way to do an *or* query using Find? -- email:[EMAIL PROTECTED] office:(805)893-4276 http://www.cs.ucsb.edu/~kris _______________________________________________ metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
