Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3C84969B for ; Mon, 5 Mar 2012 12:34:36 +0000 (UTC) Received: (qmail 58879 invoked by uid 500); 5 Mar 2012 12:34:36 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 58852 invoked by uid 500); 5 Mar 2012 12:34:36 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 58837 invoked by uid 99); 5 Mar 2012 12:34:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 12:34:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of st.never@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-ww0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 12:34:31 +0000 Received: by wgbds12 with SMTP id ds12so3265206wgb.31 for ; Mon, 05 Mar 2012 04:34:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=maHBmoWB5PoHVI9lI/21Bghaj31tdi++4NJlVyUKkYQ=; b=qzM4QOO5UNns4Fu7o1aWUnAkVRS8WMQA4ltnb9enid+Vc6oxtIu/gDwWfYZsJSyl2b jTrvFbCnuxj5PMFRZgQyxqGg146ns1BygQcCiBfojQkIiDL7NexiMZXhPpoITiHJjirC vQo5BBpfrl5nafmlW81f9qZcVduqDaaKoCmoMAROFhvC3SCo0vYVHVRBtnqdrotpcJoU a46WsugaDkfBxyu13SL1+xf1Xek2M1ILfkgLjfSYm00hlszEvC9QAgXE+QprEBi74iMf 3e6XUfHhiKMqWxh19wAcm5TC10eq0XtgiGPWGg/m/jhamOV8UPhIiF2TiM91FM3PKZKz G7mw== MIME-Version: 1.0 Received: by 10.180.76.175 with SMTP id l15mr11968711wiw.2.1330950849963; Mon, 05 Mar 2012 04:34:09 -0800 (PST) Received: by 10.216.63.130 with HTTP; Mon, 5 Mar 2012 04:34:09 -0800 (PST) In-Reply-To: <10126092-2563-4D60-A82B-ECEA24B2A287@sbcglobal.net> References: <10126092-2563-4D60-A82B-ECEA24B2A287@sbcglobal.net> Date: Mon, 5 Mar 2012 09:34:09 -0300 Message-ID: Subject: Re: How to approach Derby embedded? From: =?ISO-8859-1?Q?Jos=E9_Ventura?= To: Derby Discussion Content-Type: multipart/alternative; boundary=f46d043891bfa024a204ba7e2400 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043891bfa024a204ba7e2400 Content-Type: text/plain; charset=ISO-8859-1 The first question would be, "Is JDBC too much for me?" If you are familiar with JDBC and frameworks built upon it (Hibernate, etc), then Derby's required configuration is definitely tiny by comparison. You can run an embedded database by just: - adding derby.jar to your classpath (if using maven, that's already done for you) - specifying your JDBC url as "jdbc:derby:path/to/database/directory;create=true" - specifying your JDBC driver as "org.apache.derby.jdbc.EmbeddedDriver" Once you get a JDBC Connection you can use it to execute CREATE TABLEs and the like, and then you're ready to go. If you aren't familiar with JDBC (or think it is overkill as well), then maybe you could take a look at other persistent stores: the only one that comes to my mind right now is Prevayler , but I'm sure there are several others (I know of several NoSQL stores -- but if Derby is overkill for you then I suppose they will be too). Just my 2 cents. On Sat, Mar 3, 2012 at 7:51 PM, Kenneth McDonald < kenneth.m.mcdonald@sbcglobal.net> wrote: > I need a very simple (even SQL is more than what I need) embedded database > for some persistent stores. Derby seems like it would be ideal, except that > even configuring seems to require more than what I need. In particular, I'm > seeing in the docs that I need to edit my class path (which I shouldn't > need to do for my purposes), that I may need to set up more complex > configurations (than I need for my purposes), etc. etc. Can this be > simplified? > > More specifically; I have Derby downloaded and installed via Maven > (actually via SBT in Scala). I want to run it as a purely embedded jar, to > provide persistent store and dirt-simple queries. I don't want to worry > about shell variables, CLIs, or any similar hooey--just the simplest > possible SQL to store/access my data. Can I do this with Derby? > > My comparison point is bdb the way bdb was under Python several versions > ago--not the way bdb has become more recently. Can I achieve a similar > level of simplicity? > > Thanks, > Ken --f46d043891bfa024a204ba7e2400 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The first question would be, "Is JDBC too much for me?"

<= /div>
If you are familiar with JDBC and frameworks built upon it (Hiber= nate, etc), then Derby's required configuration is definitely tiny by c= omparison. You can run an embedded database by just:
  • adding derby.jar to your classpath (if using maven, that's= already done for you)
  • specifying your JDBC url as "jdbc:derby= :path/to/database/directory;create=3Dtrue"
  • specifying your JDB= C driver as "org.apache.derby.jdbc.EmbeddedDriver"
Once you get a JDBC Connection you can use it to execute CREATE T= ABLEs and the like, and then you're ready to go.

If you aren't familiar with JDBC (or think it is overkill as w= ell), then maybe you could take a look at other persistent stores: the only= one that comes to my mind right now is P= revayler, but I'm sure there are several others (I know of several = NoSQL stores -- but if Derby is overkill for you then I suppose they will b= e too).

Just my 2 cents.

On Sat, Mar 3, 2012 at 7:51 PM, Kenneth McDonald <<= a href=3D"mailto:kenneth.m.mcdonald@sbcglobal.net">kenneth.m.mcdonald@sbcgl= obal.net> wrote:
I need a very simple (even SQL is more than = what I need) embedded database for some persistent stores. Derby seems like= it would be ideal, except that even configuring seems to require more than= what I need. In particular, I'm seeing in the docs that I need to edit= my class path (which I shouldn't need to do for my purposes), that I m= ay need to set up more complex configurations (than I need for my purposes)= , etc. etc. Can this be simplified?

More specifically; I have Derby downloaded and installed via Maven (actuall= y via SBT in Scala). I want to run it as a purely embedded jar, to provide = persistent store and dirt-simple queries. I don't want to worry about s= hell variables, CLIs, or any similar hooey--just the simplest possible SQL = to store/access my data. Can I do this with Derby?

My comparison point is bdb the way bdb was under Python several versions ag= o--not the way bdb has become more recently. Can I achieve a similar level = of simplicity?

Thanks,
Ken

--f46d043891bfa024a204ba7e2400--