[Lift] Re: Howto re-initialize database

2009-04-08 Thread Tobias Daub
Thanks, that helped! If I want to create some initial items in a table when lift is started first, where is a good point to do that? I had a look a Boot.scala but couldn't find an entry point. Tobias Right, sorry about that. On Apr 6, 10:01 am, Derek Chen-Becker dchenbec...@gmail.com

[Lift] Re: Howto re-initialize database

2009-04-06 Thread Tobias Daub
Hi Derek, This was something that confused me a bit, too. Which kind of database is Lift using? Its not mentioned at all in the tutorial, or? I just know it from Turbogears, that they had a tool that could play with the underlying database and do stuff like delete all tables and create new

[Lift] Re: Howto re-initialize database

2009-04-06 Thread TylerWeir
The default setup uses Apache Derby[1], which is an in-memory db. You are free to use other DBs, most commonly used would be MySQL and PostgreSQL, although there are others. Take a look here, http://wiki.liftweb.net/index.php?title=Cheat_Sheet#Connection_String_Quickies [1]

[Lift] Re: Howto re-initialize database

2009-04-06 Thread Derek Chen-Becker
Actually, Derby doesn't have an in-memory mode ( http://db.apache.org/derby/faq.html#in_memory), and saves the data to disk by default. The JDBC connection URL determines the directory that Derby saves stuff in. In the ToDo app I believe it's lift_example, which should be in your project root