Skip to content
Snippets Groups Projects
Unverified Commit 7292bd50 authored by Mathieu Lirzin's avatar Mathieu Lirzin
Browse files

database: read-quoted-string: add default value to optional argument.

parent ce0d7396
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@
db-delete-evaluation
db-add-build-log
read-sql-file
read-quoted-string
sqlite-exec
;; Parameters.
%package-database
......@@ -170,7 +171,7 @@ INSERT INTO Evaluations (derivation, job_name, specification)\
(λ () body ...)
(λ () (db-close db)))))
(define* (read-quoted-string #:optional port)
(define* (read-quoted-string #:optional (port (current-input-port)))
"Read all of the characters out of PORT and return them as a SQL quoted
string."
(let loop ((chars '()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment