[Modeling-cvs] ProjectModeling/Modeling/doc/UserGuide ManipulatingGraphOfObjects.tex,1.11,1.12
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-07-10 11:57:58
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide In directory sc8-pr-cvs1:/tmp/cvs-serv32057/doc/UserGuide Modified Files: ManipulatingGraphOfObjects.tex Log Message: Added operator 'in' and 'not in' for fetch qualifiers. Operators 'AND', 'OR' and 'NOT' can now be written with lower-case characters. Index: ManipulatingGraphOfObjects.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/ManipulatingGraphOfObjects.tex,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ManipulatingGraphOfObjects.tex 9 Jul 2003 12:00:24 -0000 1.11 --- ManipulatingGraphOfObjects.tex 10 Jul 2003 11:57:55 -0000 1.12 *************** *** 178,182 **** \end{verbatim} ! \subsection{Equality, comparisons\label{ec-fetch-operators}} When building your qualifiers, you can use the following operators: \begin{itemize} --- 178,182 ---- \end{verbatim} ! \subsection{Equality, comparisons, {\tt in} and {\tt not in}\label{ec-fetch-operators}} When building your qualifiers, you can use the following operators: \begin{itemize} *************** *** 187,190 **** --- 187,192 ---- \item \code{'>='}: greater than, or equal \item \code{'!='}: different than + \item \code{'in'}: check that the value is in a list (rvalue is a list, not a tuple) + \item \code{'not in'}: check that the value is in a list (rvalue is a list, not a tuple) \end{itemize} *************** *** 195,198 **** --- 197,208 ---- you'll get all the authors who are 80 years old or more. + \begin{notice}\code{in} and \code{not in} operators require that the right + value is expressed as a list, and not as a tuple (i.e. surrounded square + brackets '\code{[}' and '\code{]}'). For example: + \begin{verbatim} + objects=ec.fetch('Writer', qualifier='age in [82, 24]') + \end{verbatim} + \end{notice} + \subsection{Negating, Con- or disjoining qualifiers\label{ec-fetch-con-disjoin-and-negate}} *************** *** 221,227 **** \begin{notice} ! Operators \code{'AND'}, \code{'OR'} and \code{'NOT'} should be written with ! capitalized letters, while operators \code{'like'}, \code{ilike} and ! \code{'caseInsensitiveLike'} should be written as-is (exact typo.) \end{notice} --- 231,238 ---- \begin{notice} ! Operators \code{'AND'}, \code{'OR'}, \code{'NOT'}, \code{'IN'} and \code{'NOT ! IN'} can be written upper-case or lower-case, while operators \code{'like'}, ! \code{ilike} and \code{'caseInsensitiveLike'} should be written as-is (exact ! typo.) \end{notice} |