Jul 17, 2015; 15:07
Steve Piercy - Website Builder
ds active statement with -> order and -> where
(1) Anyone got an example of how to construct a ds active
statement, then modify it with -> order? Assuming that is
possible as it is mentioned in the docs.
https://github.com/zeroloop/ds/wiki/Active-Statements#methods-that-construct--modify-the-statement
(2) user_ds is defined in Lasso Startup. Code sample:
local(u) = user_ds -> where(::country = 'US')
#u -> statement
'<br>'
#u -> count
'<br>'
#u -> where(::city = 'Soquel')
'<br>'
#u -> statement
'<br>'
#u -> count
'<br>'
=>
SELECT * FROM user WHERE country = 'US'
3
select_statement <-- Is that supposed to show? Am I doing it wrong?
SELECT * FROM user WHERE country = 'US' AND city = 'Soquel'
2
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy Website Builder Soquel, CA
<web@StevePiercy.com> <http://www.StevePiercy.com/>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>