unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: guile-dbi from guix not working
Date: Sat, 28 May 2022 16:37:06 +0000	[thread overview]
Message-ID: <3d8782db-68e8-eab7-03d4-852759e96d2f@posteo.de> (raw)
In-Reply-To: <87k0a9o1yf.fsf@systemreboot.net>

On 5/25/22 21:18, Arun Isaac wrote:
> Hi Zelphir,
>
>> ~~~~
>> (specifications->manifest
>>    '("guile@3.0.8"
>>      "guile-dbi"))
>> ~~~~
> I think you missed guile-dbd-sqlite3 in the manifest above. With
> guile-dbd-sqlite3 added, it works for me. Here are my results.
>
> --8<---------------cut here---------------start------------->8---
> #<guile-dbi open sqlite3 database (0 . db connected)>
> #<guile-dbi open sqlite3 database (1 . table hellotable already exists)>
> #<guile-dbi open sqlite3 database (0 . query ok)>
> #<guile-dbi open sqlite3 database (0 . query ok)>
> (("id" . 33) ("name" . "ola"))
> (("id" . 34) ("name" . "dzien dobre"))
> (("id" . 44) ("name" . "annyong haseyo"))
> (("id" . 33) ("name" . "ola"))
> #<guile-dbi close sqlite3 database (0 . dbi closed)>
> --8<---------------cut here---------------end--------------->8---
>
> Hope that helps!
> Arun

Hi Arun!

Thanks, that solves it.
Should guile-dbd-sqlite3 not be a dependency of guile-dbi then? But on the other hand, what if one only wanted to interact with one database type and not the other? So maybe not a must have dependency then. Hm. What is the typical Guix solution for this kind of "specialization" of a library? I think in the Python world, in requirements files it would be something like `library[specialization] == version`, to install that variant.

Best regards,
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl



  reply	other threads:[~2022-05-28 16:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07 11:26 guile-dbi from guix not working Zelphir Kaltstahl
2022-05-07 18:44 ` Luis Felipe
2022-05-08 12:33   ` Zelphir Kaltstahl
2022-05-25 19:18 ` Arun Isaac
2022-05-28 16:37   ` Zelphir Kaltstahl [this message]
2022-05-29  7:57     ` Arun Isaac
2022-05-29  8:58       ` non-input dependencies Was: " raingloom
2022-05-29 14:42         ` Zelphir Kaltstahl
2022-05-29 15:23           ` raingloom
2022-05-30  6:31             ` Arun Isaac

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d8782db-68e8-eab7-03d4-852759e96d2f@posteo.de \
    --to=zelphirkaltstahl@posteo.de \
    --cc=arunisaac@systemreboot.net \
    --cc=help-guix@gnu.org \
    /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 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).