# \[ANN\] ndb Object-Relational Mapper

**URL:** https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021
**Category:** ruby-talk
**Created:** [7 October 2004 11:14 UTC](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021 "2004-10-07T11:14:53Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)
#### Post date: [9 October 2004 14:35 UTC](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021/21 "2004-10-09T14:35:07Z")

</div>

The code isn't there for processing XPATH queries, but I have documented how  
it could be done.  
&nbsp;&nbsp;[http://www.linnet.org/software/zml/zml-20041009.tgz](http://www.linnet.org/software/zml/zml-20041009.tgz)  
and see README.path

The code is really just a proof-of-concept, but is functional to the point  
of being able to:  
- spool in XML documents/fragments to a SQL database  
- spool out SQL to the original XML, either whole documents or any subtree

There are some helper classes which might be useful elsewhere. e.g. an  
REXML::StreamParser generates a stream of method calls tag\_start / tag\_end /  
text etc; I have objects which can convert such a stream of method calls  
back into the source XML, or into a tree of REXML::Element objects.

It would have been nice if REXML provided such objects itself, but I won't  
raise this with the machine-gun-wielding author 🙂

Regards,

Brian.

> **···**
>
> On Fri, Oct 08, 2004 at 11:29:45PM +0900, George Moschovitis wrote:
> 
> > ps: I would really like to have a look at your xpath-\>sql translator.

---

<div class="post-metadata">

### Author: ![George\_Moschovitis](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@George\_Moschovitis](https://rubytalk.org/u/George_Moschovitis)
#### Post date: [15 October 2004 16:29 UTC](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021/22 "2004-10-15T16:29:29Z")

</div>

thank you for the link, I 'll have a look at it 🙂

-g.

---

<div class="post-metadata">

### Author: ![Its\_Me](https://avatars.discourse-cdn.com/v4/letter/i/958977/32.png) [@Its\_Me](https://rubytalk.org/u/Its_Me)
#### Post date: [19 October 2004 02:04 UTC](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021/23 "2004-10-19T02:04:21Z")

</div>

Rails is great, but Active Record puts relational stuff in your face pretty  
much from day 1. ndb seems to offer a very nice way of working persistence  
into an application without having to deal with relational tables up front,  
and the possibility of not having to deal with them at all working instead  
with something like Magdeline.

I am sure some of Active Record ideas of declarative definition of different  
kinds of association etc. could be applicable to ndb.

Does anyone else think there may be a good marriage between the two? Action  
pack would probably need a bit of clean up to remove direct dependencies on  
Active Record.

---

<div class="post-metadata">

### Author: ![George\_Moschovitis1](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@George\_Moschovitis1](https://rubytalk.org/u/George_Moschovitis1)
#### Post date: [19 October 2004 07:29 UTC](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021/24 "2004-10-19T07:29:21Z")

</div>

> much from day 1. ndb seems to offer a very nice way of working persistence  
> into an application without having to deal with relational tables up front,  
> and the possibility of not having to deal with them at all working instead  
> with something like Magdeline.  
> Does anyone else think there may be a good marriage between the two? Action  
> pack would probably need a bit of clean up to remove direct dependencies on  
> Active Record.

Hello, I am glad you like ndb.

FYI we are about to release a Web Application Engine to go along with ndb. I am sure you will find many nice ideas in the application framework as well. I hope the community will suggest many cool ideas  
for that project as well. Of course we will integrate many ideas from  
Rails and Active Record. The latest ndb version (to be included in the  
Web Engine release) has improved api and some new features.

stay tuned!

George Moschovitis

> **···**
>
> --  
> www.navel.gr | tel: +30 2106898050 | fax: +30 2106898437
> 
> Navel does not accept liability for any errors, viruses or omissions in the contents of this message. The full corporate policy is available on our site.
> 
> have fun: www.joy.gr

---

<div class="post-metadata">

### Author: ![George\_Moschovitis1](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@George\_Moschovitis1](https://rubytalk.org/u/George_Moschovitis1)
#### Post date: [19 October 2004 07:54 UTC](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021/25 "2004-10-19T07:54:26Z")

</div>

> > Does anyone else think there may be a good marriage between the two? Action pack would probably need a bit of clean up to remove direct dependencies on Active Record.

I am also prepared to make any changes needed to better integrate ndb  
with ActionPack.

George Moschovitis

> **···**
>
> --  
> www.navel.gr | tel: +30 2106898050 | fax: +30 2106898437
> 
> Navel does not accept liability for any errors, viruses or omissions in the contents of this message. The full corporate policy is available on our site.
> 
> have fun: www.joy.gr

[Previous page](https://rubytalk.org/t/ann-ndb-object-relational-mapper/14021.md?page=1)
