> How do you select-tuples from a db with a slot set to f? The help says
> that "A SQL query is constructed from the slots of the exemplar tuple
> that are not f." So for example the following won't work:
>
> [ T{ book { sold f } } select-tuples ] with-books-db
>
> Do you have to use two slots, sold and unsold, and select T{ book {
> unsold t } }? Is there some other way that still lets you use
> select-tuples?

I haven't tried this, but you might try passing a value that will get
converted to FALSE at the database level, for example:
[ T{ book { sold 0 } } select-tuples ] with-books-db

best,
- Fred.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to