sql3:col-names
and
sql3:col-types
are not mentioned in the documentation of the module for accessing an SQLite database. Still, especially sql3:col-names is useful in situations where one wants to know what columns are returned after doing, e.g. a
select * from <table>
In this particular case the columns may be retrieved by using
(sql3:columns <table>)
, but that would be an ugly workaround. What if the user specifies
select count(*) as count,* from <table>
sql3:col-names would give me the correct number of columns with their names.
I'd like to see a documented accessor to sql3:col-names.
Thanks :)
-- Kirill
Now documented here: http://www.newlisp.org/code/modules/sqlite3.lsp.html#sql3_col-names
Now that it's documented, it is a part of the API and it's safe to use it - it won't just seddenly disappear.
Thank you!
Lutz, col-names is now not consistent with the rest of the functions. Could you please add a wrapper as for rowid. It's only three lines.
Thank you.