I thought there was an implicit in scope that said "conditionally." :)

-------------------------------------
David Pollak<[email protected]> wrote:

On Sun, Jan 31, 2010 at 12:54 PM, Naftoli Gugenheim <[email protected]>wrote:

> If you only initialize the database all at once, why not just put the code
> in Boot?
>

Because if the code's in Boot, it will be executed every time the code is
run.


>
> -------------------------------------
> Channing Walton<[email protected]> wrote:
>
>
> Looking around MetaMapper and Schemifier, it looks like I could override
> BaseMetaMapper.afterSchemifier to do what i want although I would need to
> nominate a mapper to do this work (User would suffice).
>
> I'll try it...
>
>
> Timothy Perrett wrote:
> >
> > You could in theory have some run task that just essentially executed
> > a bunch of mapper calls, but it sounds like you want more of a build
> > up and tear down approach a la:
> >
> > http://code.google.com/p/scala-migrations/
> >
> > Perhaps that is what you are after?
> >
> > Cheers, Tim
> >
> > On Jan 31, 11:59 am, Channing Walton <[email protected]> wrote:
> >> Hi,
> >> I am building an app which needs some static data added whenever we
> >> rebuild
> >> the database. I would like to do that using the mapper api but it looks
> >> like
> >> I need to do it table by table by overriding dbAddTable. I would prefer
> >> to
> >> do this in one place for the whole model, preferably using the mapper
> api
> >> rather than sql.
> >>
> >> Is there a way to do that, perhaps in Boot?
> >> --
> >> View this message in
> >> context:http://old.nabble.com/static-data-tp27392115p27392115.html
> >> Sent from the liftweb mailing list archive at Nabble.com.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<liftweb%[email protected]>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/liftweb?hl=en.
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/static-data-tp27392115p27396183.html
> Sent from the liftweb mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to