[Lift] Re: Maper SQL stored procedures

2009-11-19 Thread Marcin Jurczuk

David,

Thanks for quick response,

On 19 Lis, 18:39, David Pollak  wrote:
> Marcin,
>
> Back in SmartMode days (a Java-based precursor to Lift) we bound methods to
> stored procedures, but it was pretty costly dev-wise in terms of abstracting
> the way each RDBMS deals with stored procedures.
>
> If you (or someone else) has a nice abstraction of stored procedures that's
> type safe, let's see if we can add it to Lift.
>
> Thanks,
>
> David
>
>
>
> On Thu, Nov 19, 2009 at 3:23 AM, Marcin Jurczuk  wrote:
> > Hi group,
>
> > Is there a way for nice support for stored procedures in Mapper
> > Framework.
> > Let assume that I have database where only way to get data is stored
> > procedure for example
> > Instead SELECT * from user I must execute exec dbo.GET_USERS
>
> > How connect Mapper fields with access to them by stored procedures ?
>
> > A can of cource use raw/insecure SQL but then I'm loosing all Mapper
> > features ..
>
> > Thanks in advance
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=.
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=.




[Lift] Re: Maper SQL stored procedures

2009-11-19 Thread jon
I think you could do: User.findAllByInsecureSql("exec dbo.GET_USERS",
IHaveValidatedThisSQL("me", "19 Nov 2009")).  That would return a List
[User]


On Nov 19, 6:23 am, Marcin Jurczuk  wrote:
> Hi group,
>
> Is there a way for nice support for stored procedures in Mapper
> Framework.
> Let assume that I have database where only way to get data is stored
> procedure for example
> Instead SELECT * from user I must execute exec dbo.GET_USERS
>
> How connect Mapper fields with access to them by stored procedures ?
>
> A can of cource use raw/insecure SQL but then I'm loosing all Mapper
> features ..
>
> Thanks in advance

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=.