You can use simple wrapper like as
proc ::dataset::update {table fields} {
array set info $fields
foreach {key value} $fields {
if {$key eq {id}} continue
if {$key eq {*}} continue
lappend sql_pairs $key=:info($key)
}
If SQLite can return to me a Tcl array from SELECT, why does the feature not
exist to INSERT, UPDATE, or DELETE using a properly formed Tcl array as an
argument?
Seems nice to have, but perhaps I'm not aware of possible dangers in such a
feature.
Thanks.
--
Ross
_
2 matches
Mail list logo