2008-04-12更新
Gauche 0.8.7以降の、DBIの新APIに対応したSQLite3バインディングです。
SQLite2.x系には対応していません。
単純なサンプルを以下に記載しておきます。
(use dbi) (use gauche.collection) (define connection (dbi-connect "dbi:sqlite3:example.db")) (for-each (lambda (row) (format (current-output-port) "id:~a age:~a\n" (dbi-get-value row 0) (dbi-get-value row 1))) (dbi-execute (dbi-prepare connection "SELECT id, age FROM tbl1 ORDER BY age ASC;") )) (dbi-close connection)
FFIを利用した物に書き直す以前の物です
gauche-dbd.sqlite3.060907a.tar.gz
080412b版に含まれるconfigureスクリプトの1483行目でエラーになりました。 以下のように変更するとOKでした。
if $CC = "gcc"; then => if [ "$CC" = "gcc" ]; then
configure.inのほうをどう修正すれば上のように展開されるのかはわかりません。 autoconfとかの問題?