unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* squee
@ 2017-04-17  9:35 Catonano
  2017-04-18 12:53 ` squee Catonano
  0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-04-17  9:35 UTC (permalink / raw)
  To: help-guix, guile-user

[-- Attachment #1: Type: text/plain, Size: 1766 bytes --]

I'm not sure i this is for the guix-help ml or for the guile-users ml

I'll move this to the appropriate place, if you will indicate it to me.
Thanks.

On my GuixSD system, I'm trying to get my feet wet with cwebber's squee
https://notabug.org/cwebber/guile-squee

I have this line
(define conn (connect-to-postgres-paramstring "dbname=tryton
user=postgres"))

then, in the REPL, I try

scheme@(squee)> conn

and I get

$4 = ././././squee.scm:131:29: In procedure #<procedure 1998560 at
././././squee.scm:129:2 (pg-conn port)>:
././././squee.scm:131:29: In procedure unwrap-pg-conn: Wrong type argument:
Error while printing exception.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

Of course I get this same exception also if I try to run a query, with the
same connection

Previously, I changed this line
(define libpq (dynamic-link "libpq"))

to
(define libpq (dynamic-link
"/gnu/store/0fqfm833m1g3603l0vifbzg6kqaqad24-postgresql-9.5.6/lib/libpq.so"))

that's the postgres that's installed in my profile

But there are 3 more postgreses in my store

~$ ls /gnu/store/ | grep postgresql
[...]
0fqfm833m1g3603l0vifbzg6kqaqad24-postgresql-9.5.6/
[...]
5x35az6lbi7y0zd4z45b7kv1qp67aqac-postgresql-9.5.6/
[...]
dwbscplq276xzcfzryda7g5097p23974-postgresql-9.5.6/
[...]
hmdqm7xvshlf6ljwck77nap821jzg677-postgresql-9.5.6/

I don't know why. I have configured my system with a postgresql service
running. Maybe the service is using a different package form the one
installed in my profile ?

I don't know

And what about the other 2 postgreses ?

Anyway, about my my screech with squee: Is it because I'm linking
incorrectly to the postgres library ?

Or is this because the code is not fresh (last edit was "one year ago") ?

Thanks in advance

[-- Attachment #2: Type: text/html, Size: 2321 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: squee
  2017-04-17  9:35 squee Catonano
@ 2017-04-18 12:53 ` Catonano
  2017-04-18 19:48   ` squee Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-04-18 12:53 UTC (permalink / raw)
  To: help-guix, guile-user

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]

Ok, I was just confused, it works like a charm

Sorry for the noise

[-- Attachment #2: Type: text/html, Size: 149 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: squee
  2017-04-18 12:53 ` squee Catonano
@ 2017-04-18 19:48   ` Christopher Allan Webber
  2017-04-19  2:32     ` squee Catonano
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2017-04-18 19:48 UTC (permalink / raw)
  To: Catonano; +Cc: guile-user, help-guix

Catonano writes:

> Ok, I was just confused, it works like a charm
>
> Sorry for the noise

Ah!  No worries about the noise.  I'm happy to see someone using squee.

It hasn't gotten much love in the last couple of years.  I intend to
return to using it in the not too distant future.  If you're interested
in working on improvements to it we should talk.  In particular we need
help on code that converts between postgres types and guile native types
more, I think.

David Pirotte also has commit access and can help make decisions on the
project.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: squee
  2017-04-18 19:48   ` squee Christopher Allan Webber
@ 2017-04-19  2:32     ` Catonano
  0 siblings, 0 replies; 4+ messages in thread
From: Catonano @ 2017-04-19  2:32 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guile-user, help-guix

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Chris,

thanks for your reply, usually Gmail makes messages aimed to me rather than
to some mailing list more evident

It didn't, in this case, so I missed your reply for a few hours.

Gmail is supposed to use wisdom, in its choices :-/

2017-04-18 21:48 GMT+02:00 Christopher Allan Webber <cwebber@dustycloud.org>
:

>
> Ah!  No worries about the noise.  I'm happy to see someone using squee.
>
> It hasn't gotten much love in the last couple of years.  I intend to
> return to using it in the not too distant future.  If you're interested
> in working on improvements to it we should talk.


Ok. For now I'd like to use it to populate a database of mine.
Then, we'll see


> In particular we need
> help on code that converts between postgres types and guile native types
> more, I think


Yes, I read your TODO.org file.
Admittedly I don't understand some of the suggestions you give in that file

Maybe because I didn't explore your code yet
Also I didn't skim through the C library you're using.
So I didn't see the Postgres types table that you mention

I just tested the connection and executed one query, to be sure that it was
working correctly

So, let's do like this: I'll use  it a bit in the next few days, then I'll
be able to be more accurate

Thanks !

[-- Attachment #2: Type: text/html, Size: 2151 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-19  2:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17  9:35 squee Catonano
2017-04-18 12:53 ` squee Catonano
2017-04-18 19:48   ` squee Christopher Allan Webber
2017-04-19  2:32     ` squee Catonano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).