Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
query mysql from scheme
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sigrid Keydana  
View profile  
 More options Dec 22 2008, 4:29 pm
From: Sigrid Keydana <keyd...@gmx.de>
Date: Mon, 22 Dec 2008 22:29:57 +0100
Local: Mon, Dec 22 2008 4:29 pm
Subject: [plt-scheme] query mysql from scheme
Hi all,

can you please give me a hint what is the preferable way to access a
mysql database with plt?

Doing a search on the web, I found

- the sqlid.plt package on Planet, by Hans Oesterholt , but it does not
include a mysql driver, at least not in the current version, so I
suppose I cannot use it?

- the mysqlclient.ss from riverbot, which I don't know will work with
PLT 4?

My requirements regarding sql queries are very humble, just simple
selects and updates, and I'd like to use PLT 4, not 3, to get used to
the changes (which don't seem too trivial if you're still a scheme
beginner...)

I'd be grateful for a hint which might be the easiest/stablest/most
"out-of-the-box" way to use mysql in scheme, as this is only a marginal
(but inevitable) part of the application.

Thanks a lot in advance
Sigrid
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Van Horn  
View profile  
 More options Dec 22 2008, 6:49 pm
From: David Van Horn <dvanh...@ccs.neu.edu>
Date: Mon, 22 Dec 2008 18:49:41 -0500
Local: Mon, Dec 22 2008 6:49 pm
Subject: Re: [plt-scheme] query mysql from scheme

Sigrid Keydana wrote:
> - the mysqlclient.ss from riverbot, which I don't know will work with
> PLT 4?

Geoffrey Knauth was using the library a year ago with 3.99.0.2, so it
may be possible (Geoff may also have improvements to the code, which I
haven't touched in 5 years).  You'll likely need to tweak the
mysqlclient code for v4 and whatever version of MySQL you're using.

> My requirements regarding sql queries are very humble, just simple
> selects and updates, and I'd like to use PLT 4, not 3, to get used to
> the changes (which don't seem too trivial if you're still a scheme
> beginner...)

> I'd be grateful for a hint which might be the easiest/stablest/most
> "out-of-the-box" way to use mysql in scheme, as this is only a marginal
> (but inevitable) part of the application.

You could try using the Foreign interface to make calls to the mysql
library.  (It wasn't around when I wrote mysqlclient.ss).

David
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoffrey S. Knauth  
View profile  
 More options Dec 22 2008, 9:00 pm
From: "Geoffrey S. Knauth" <ge...@knauth.org>
Date: Mon, 22 Dec 2008 21:00:19 -0500
Local: Mon, Dec 22 2008 9:00 pm
Subject: Re: [plt-scheme] query mysql from scheme
Sigrid,

Indeed I am still using David Van Horn's mysqlclient.  Every time I  
update DrScheme from SVN, I rebuild and mysqlclient.  I had to make  
very minor adjustments a few years ago, and another minor adjustment  
during the v300 to v4.x transition.  It works.  I routinely alternate  
between Mac OS X and Ubuntu.

I just put everything I use here:

http://knauth.org/plt/mysql/

You'll see two directories, mysqlclient and teaching-db.  mysqlclient  
is basically David's code with really minor modifications done to keep  
it working five years after he wrote it.  teaching-db is a hack of  
mine:  I keep grades and assignments in a MySQL database, because it  
helps me remember who submitted what, whose stuff needs to be graded,  
how people are doing, etc.  I just put it there so you could see a  
little bit of code that uses DVH's code, then you can adapt it for  
your own use.

At some point I'd love to repackage mysqlclient, put it into PLaneT,  
etc., but first I want to look at the other database packages on  
PLaneT and see if there's a way to unify the approaches.  For example,  
in Ruby on Rails, it's easy to switch database engines with minimal  
changes to config files.  It would be grand if database work using  
DrScheme were so easily retargeted.

Geoffrey

On Dec 22, 2008, at 18:49, David Van Horn wrote:

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoffrey S. Knauth  
View profile  
 More options Dec 22 2008, 9:09 pm
From: "Geoffrey S. Knauth" <ge...@knauth.org>
Date: Mon, 22 Dec 2008 21:09:09 -0500
Local: Mon, Dec 22 2008 9:09 pm
Subject: Re: [plt-scheme] query mysql from scheme
I left out a word in my last message.

< Every time I update DrScheme from SVN, I rebuild and mysqlclient.
--
 > Every time I update DrScheme from SVN, I rebuild and test  
mysqlclient.
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marek Kubica  
View profile  
 More options Dec 22 2008, 9:13 pm
From: Marek Kubica <ma...@xivilization.net>
Date: Tue, 23 Dec 2008 03:13:41 +0100
Local: Mon, Dec 22 2008 9:13 pm
Subject: Re: [plt-scheme] query mysql from scheme
On Mon, 22 Dec 2008 21:00:19 -0500
"Geoffrey S. Knauth" <ge...@knauth.org> wrote:

> At some point I'd love to repackage mysqlclient, put it into PLaneT,  
> etc., but first I want to look at the other database packages on  
> PLaneT and see if there's a way to unify the approaches.  For
> example, in Ruby on Rails, it's easy to switch database engines with
> minimal changes to config files.  It would be grand if database work
> using DrScheme were so easily retargeted.

That's a good idea. Although I suppose RoR uses a rather high-level
interface. The Python DB API <http://www.python.org/dev/peps/pep-0249/>
provides a rather low-level interface that every SQL library worth
speaking of supports (you might want to skim through it for an API
that works with many libraries and is low-level enough not to tie
into specific functionality). Seeing something like this for DrScheme
would be great.

regards,
Marek
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoffrey S. Knauth  
View profile  
 More options Dec 22 2008, 9:29 pm
From: "Geoffrey S. Knauth" <ge...@knauth.org>
Date: Mon, 22 Dec 2008 21:29:54 -0500
Local: Mon, Dec 22 2008 9:29 pm
Subject: Re: [plt-scheme] query mysql from scheme
On Dec 22, 2008, at 21:13, Marek Kubica wrote:

> The Python DB API <http://www.python.org/dev/peps/pep-0249/>
> provides a rather low-level interface that every SQL library worth
> speaking of supports (you might want to skim through it for an API
> that works with many libraries and is low-level enough not to tie
> into specific functionality).

I'll take a look.  Thank for the suggestion.

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
stelvio  
View profile  
 More options Dec 23 2008, 4:08 pm
From: stelvio <keyd...@gmx.de>
Date: Tue, 23 Dec 2008 13:08:13 -0800 (PST)
Local: Tues, Dec 23 2008 4:08 pm
Subject: [plt-scheme] Re: query mysql from scheme
Thanks a lot for the information!
Especially many thanks, Geoffrey, for the link to the files - this
will be very useful to me, the adapted mysqlclient and also the usage
examples!

Thanks again!
Sigrid
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Axel Soegaard  
View profile  
 More options Dec 23 2008, 5:03 pm
From: Jens Axel Soegaard <jensa...@soegaard.net>
Date: Tue, 23 Dec 2008 23:03:55 +0100
Local: Tues, Dec 23 2008 5:03 pm
Subject: Re: [plt-scheme] Re: query mysql from scheme

stelvio wrote:
> Thanks a lot for the information!
> Especially many thanks, Geoffrey, for the link to the files - this
> will be very useful to me, the adapted mysqlclient and also the usage
> examples!

FWIW - if it doesn't have to be MySQL, then try the bindings
for SQLite. They are uptodate.

http://planet.plt-scheme.org/display.ss?package=sqlite.plt&owner=jaym...

--
Jens Axel Søgaard
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
stelvio  
View profile  
 More options Dec 24 2008, 9:13 am
From: stelvio <keyd...@gmx.de>
Date: Wed, 24 Dec 2008 06:13:05 -0800 (PST)
Local: Wed, Dec 24 2008 9:13 am
Subject: [plt-scheme] Re: query mysql from scheme
Thanks for the hint - I had seen these, but unfortunately it has to be
MySQL, and an old version too (3.2.3 if I remember correctly...)

Ciao
Sigrid

On Dec 23, 11:03 pm, Jens Axel Soegaard <jensa...@soegaard.net> wrote:

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »