diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-10-30 10:31:00 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-10-30 10:31:00 +0200 |
commit | 3ceaa918295e3038fcca9950410ada5d46edfdbe (patch) | |
tree | 454d7a06d5f372dac40de94beff362cddd28866b | |
parent | b489ca507058c7d23df6a3339bd30a6dc39fa55e (diff) | |
download | emacs-3ceaa918295e3038fcca9950410ada5d46edfdbe.tar.gz |
; * src/sqlite.c (Fsqlite_select): Doc fix. (Bug#58885)
-rw-r--r-- | src/sqlite.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/sqlite.c b/src/sqlite.c index d6cb38a29ad..08bf696b8ca 100644 --- a/src/sqlite.c +++ b/src/sqlite.c @@ -528,14 +528,15 @@ DEFUN ("sqlite-select", Fsqlite_select, Ssqlite_select, 2, 4, 0, If VALUES is non-nil, it should be a list or a vector specifying the values that will be interpolated into a parameterized statement. -By default, the return value is a list where the first element is a -list of column names, and the rest of the elements are the matching data. - -RETURN-TYPE can be either nil (which means that the matching data -should be returned as a list of rows), or `full' (the same, but the -first element in the return list will be the column names), or `set', -which means that we return a set object that can be queried with -`sqlite-next' and other functions to get the data. */) +By default, the return value is a list, whose contents depend on +the value of the optional argument RETURN-TYPE. + +If RETURN-TYPE is nil or omitted, the function returns a list of rows +matching QUERY. If RETURN-TYPE is `full', the function returns a +list whose first element is the list of column names, and the rest +of the elements are the rows matching QUERY. If RETURN-TYPE is `set', +the function returns a set object that can be queried with functions +like `sqlite-next' etc., in order to get the data. */) (Lisp_Object db, Lisp_Object query, Lisp_Object values, Lisp_Object return_type) { |