+2012-08-28 Ryan Davis <ryan@acceleration.net>
+ * db-sqlite3/sqlite3-api.lisp - allow pathnames in the connection
+ settings, so '("/db/my.sqlite") and '(#P"/db/my.sqlite") are
+ equivalent. Updated the docs to match.
+
2012-08-17 Russ Tyndall <russ@acceleration.net>
* db-postgresql-socket3/package.lisp - shadow
postgresql-notification for compatibility with new
;;;;
;;;; wrapper functions.
;;;;
-(defun sqlite3-open (db-name &optional (mode 0))
+(defun sqlite3-open (db &optional (mode 0)
+ &aux (db-name (etypecase db
+ (pathname (namestring db))
+ (string db))))
(declare (ignore mode) (type string db-name))
(let ((dbp (allocate-foreign-object 'sqlite3-db)))
(declare (type sqlite3-db-ptr-type dbp))
<varlistentry>
<term><parameter>filename</parameter></term>
<listitem>
- <para>String representing the filename of the &sqlite;
- database file.</para>
+ <para>String or pathname representing the filename of
+ the &sqlite; database file.</para>
</listitem>
</varlistentry>
</variablelist>