From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WJvWOqu4d2J75AAAbAwnHQ (envelope-from ) for ; Sun, 08 May 2022 14:33:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SMHeOqu4d2JwOgAAauVa8A (envelope-from ) for ; Sun, 08 May 2022 14:33:47 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4E7FBAFB8 for ; Sun, 8 May 2022 14:33:47 +0200 (CEST) Received: from localhost ([::1]:60384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nng6c-0000pl-BU for larch@yhetil.org; Sun, 08 May 2022 08:33:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nng66-0000pa-Su for help-guix@gnu.org; Sun, 08 May 2022 08:33:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nng63-0002Pe-VR for help-guix@gnu.org; Sun, 08 May 2022 08:33:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DB76224002A for ; Sun, 8 May 2022 14:33:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1652013183; bh=GCogU5vjDTxp0Xdlr5xGhrW/viLlwkapSvhM0UOZeMg=; h=Date:Subject:To:Cc:From:From; b=F7DZQPBvJhFh4w6DkPWx3W30FW53Osw3QdMENwd1ghPcX2b69YPQAetmXBZ5sQ/am 42svPuWIrUXuWFNloovtdehxLqdKCrs2btj6LwdgjYjzeCuxEsHFuhA+6NHtcmnnOB O4TjCfrjP2AoQXLVUWbe34JDguGf6G6Vh8JQLvMO9G9ZTN2RBexbKCF47AyiVkS7dD 51dSjwizGp9lACz1XHgiChvyXZ8TiO7UzC6uatngei4hzkU7jLODTO8G0tHchdfGyX /NGZTsJUYTt5F4Ws7mBGYlRb7tCBFXthB9ef1ppcZ/kzPE6N9vFLtNfZuNZv1M4Wjo yUtlVfGhnhMaw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kx3cG5ZgZz9rxG; Sun, 8 May 2022 14:33:02 +0200 (CEST) Message-ID: <1ce2ab7b-621a-4370-d7ec-a109e3f60b92@posteo.de> Date: Sun, 8 May 2022 12:33:01 +0000 MIME-Version: 1.0 Subject: Re: guile-dbi from guix not working Content-Language: en-US To: Luis Felipe Cc: help-guix@gnu.org References: <_AP5NFXjo6pCe531Abuzx_BS3f6_SZnaA9BXyJUR5QmUlNUUY2LhaTMaZWVY_ogANHnBxaTSlArTDNXppnaGKbSRmT0ueGa-uoozlHOa2V4=@protonmail.com> From: Zelphir Kaltstahl In-Reply-To: <_AP5NFXjo6pCe531Abuzx_BS3f6_SZnaA9BXyJUR5QmUlNUUY2LhaTMaZWVY_ogANHnBxaTSlArTDNXppnaGKbSRmT0ueGa-uoozlHOa2V4=@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652013227; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JbdACvxJWtHaRQ2WcH2EygcrX1v0fArhDwdqqwRMtUg=; b=dfz6SfPLL7SM5ivCcE2I1mHxfDGW03YtiDDz7j+J7BGqfqQMX2AxWbwxE7IBXosBScOASW xR0FV10Gc5Fk/fkk5HwKwSubOGuqEtO/VUpYtklmFeQIL1UBlbxy4r5QFo0VZpMKAxTC6l 26a3jYBR38o3n4Wp7P8VXfmFMgW09PANR+/WgTLA4U1llVtB2ytlSY0ohKmAtnRk+gsEgg OG4FjmEcr50+BbEP3T3lti0/kPe0gDTtwQs0xpshQAHfIsy1CRsH90kD1orGiBbdbBkuRy WCytUSkQicm43ItLzDLZMlADun+Jtozvf6PdHbFNfmepmJYzua9xlGx2sD5x5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652013227; a=rsa-sha256; cv=none; b=JBNIPQ+8eM5Fj8qV9tFsO21N683nQnl1ntx/3e6NV4wO/H7uUGbTInprbXp4TAiK2uha7X GDwxViiTOrv5oWxYOh2YHiXxclZFqPZo/UGqPflhN221BBpPudpW1mHbRzGfylQCGoSPYW ohS/42tlMkHay6HK2YNNYzmyDDWDfp6gVMTUYWgW7Wj+zfr+JV0MYUsusm8vOCsByxrnvg /g5vEDa3ghwsiQkjwkkYXyeAD5w4fczj4b05bgAbfNXLNy54sPq5SQyh4XQVm3Mk7uQ4NN D3vuOIM7paSGuUYtZbvbqt43MAd+5zXD9q0uw5p7OyJKnJtlPhdzw7otjVpdEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=F7DZQPBv; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=F7DZQPBv; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4E7FBAFB8 X-Spam-Score: -5.21 X-Migadu-Scanner: scn1.migadu.com X-TUID: RlGZ6bSGc7fj Hello Luis! On 5/7/22 20:44, Luis Felipe wrote: > Hi Zelphir, > > On Saturday, May 7th, 2022 at 11:26 AM, Zelphir Kaltstahl wrote: > >> Is it really broken, or am I doing something wrong? > For what it's worth, it fails in the same way for me too. Trying to open a connection results in a handle with "file not found" status. > > If you just need to work with SQLite databases, I tried guile-sqlite3 and it worked (connecting, inserting records, etc). It is not documented, but the tests help discover how to use some things (https://notabug.org/guile-sqlite3/guile-sqlite3.git). > > For example, I don't know what I'm doing, but this works: > > ~~~ > (import (sqlite3)) > > ;; Log into the database. > (define db (sqlite-open "database.sqlite3")) > > ;; Create a table. > (sqlite-exec db "create table hellotable(id int, name varchar(15))") > > ;; Populate the table with values. > (sqlite-exec db "insert into hellotable ('id', 'name') values('33', 'ola')") > (sqlite-exec db "insert into hellotable ('id', 'name') values('34', 'dzien dobre')") > (sqlite-exec db "insert into hellotable ('id', 'name') values('44', 'annyong haseyo')") > > ;; Display each of the rows of the table, in turn. > (let* [(stmt (sqlite-prepare db "select * from hellotable")) > (result (sqlite-map identity stmt))] > > (for-each > (lambda (row) (begin (display row) (newline))) > result)) > > ;; Close connection. > (sqlite-close db) > ~~~ This is exactly what I have done : ) I looked at the tests and changed the code a little: https://notabug.org/ZelphirKaltstahl/guile-examples/commit/a9e635b990f5384ccfb3613003489f47759ca690. However, I saw, that there are segfaults reported at https://notabug.org/guile-sqlite3/guile-sqlite3/issues/17 and also I realized, that on GNU Guix version 0.1.2 is available, while in the repo there is 0.1.3, which has trace functions (which I am not sure I will ever need). So I am a bit unsure, how solid of an option it really is. Thanks for the idea nevertheless! Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl