Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

REPL Package

jwachter edited this page Sep 14, 2010 · 1 revision

To use REPL there is a special package provided here (http://github.com/downloads/jwachter/scala-db4o-dsl/scala-db4o-dsl-repl.zip)

Use the package in repl to test interactive DSL Queries

Run a Scala console in the package extracted folder and do the following commands:

:cp db4o.jar

:load Person.scala

:load DB4O.scala

:load InitDB.scala // only needs to be called the first time, seconds time use the next 2 lines instead:

// import com.db4o._

// val db = Db4o.openFile(“simpsons.db”)

// db is now available with the database

db select …

Clone this wiki locally