Primarily technical blog on Lisp, .NET, C# development.

Wednesday, January 6, 2010

Connecting to a database from Lisp

This is another reminder to myself on how to connect to a database on Lisp using cl-sql through odbcunix.

(use-package :cl-sql)
(connect '("dsn" "user" "password") :database-type :odbc)
(query "select * from table_a")

No comments: