From: Konstantin Besch <forward@zagon.com>
To: reiserfs-list@namesys.com, ulenrich@gmx.de
Subject: Re: if xml-DB possible on Reiser4 - would be also SQL?
Date: Tue, 10 Aug 2004 21:23:41 -0400 [thread overview]
Message-ID: <200408102123.41160.forward@zagon.com> (raw)
In-Reply-To: <41188B66.2010609@gmx.de>
I am interested in precisely the same development idea.
Looked at mysql and pgsql to share and (possibly?) map their table structure
into regular fs system. Since I like perl my examples looked as following :
simple select - "SELECT * from x_table WHERE x_field LIKE 'foo' " operation ,
written in perl would look like :
"while (x_table::xfield =~ /foo/){print;}"
assuming you have x_table mapped as /my_db/x_table file in the fs.
pgsql looks more promising , since to run complex queries you would still need
to use pgsql's query optimizer and so on.
So , the solution is either translation of filesystem calls into sql
statements (which is really inefficient ) or writing a special
client-connector for pgsqld and to use their internal (hopefully shared)
functionality to meet the goal.
Although to sql translation would be more universal , I doubt it is worth the
trouble writing. This is the reply I got from Ken , developer of SQLFairy
group (they wrote tool to translate different SQL's into each other) :
" What you want would first require a substantial amount of work to add to
our existing grammars all the rules for parsing mutation statements for each
vendor, and then you could create some sort of Perl Producer class to create
your output. It's not impossible, of course, and we'd be happy if you want
to contribute this. I will admit that I'm somewhat skeptical, however I've
been wrong about other suggestions to the project in the past. I guess I'm
generally satisfied with SQL. It's a handy domain-specific language that is
generally standardized and portable, so I can't imagine wanting to rewrite
SQL in Perl. If this is something you'd like to see in SQL::Translator,
you'll likely have to write it. :-) ".
I have downloaded Reiser4 and looking at the plugin code. PGsql has
interesting feature called "PL/Perl", maybe it is going to be enough ( for
now) to do what I need.
--Sincerely , Dean
On Tuesday 10 August 2004 4:46 am, Ralph wrote:
> Would it be possible to write a SQL-plugin for Reiser4 with all
> typicall SQL CONSTRAINTs (foreignkeys, triggers ...etc)?
>
> Thus data integrity a SQL-database despite a filesystem provides
> and a (Ms)WinFS like system could be realised.
>
> After writing some data with a SQL-client, you could retrieve
> a pieces of data through the filesystem interface, like:
> # cat ../my_databasename/my_schema/my_table/my_friend/his_email
>
> The features of "Reiser4 Atomic Filesystem" would enable
> SQL-Transactions when inserting data through a SQL-client.
prev parent reply other threads:[~2004-08-11 1:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 8:46 if xml-DB possible on Reiser4 - would be also SQL? Ralph
2004-08-11 1:23 ` Konstantin Besch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408102123.41160.forward@zagon.com \
--to=forward@zagon.com \
--cc=reiserfs-list@namesys.com \
--cc=ulenrich@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.