blob: 765c3f9ba7151712f8671e933f8edfb8d6ef5ee6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package require sqlite
if {$argc!=2} {
puts stderr "Usage: %s DATABASE SQL-STATEMENT"
exit 1
}
sqlite db [lindex $argv 0]
db eval [lindex $argv 1] x {
foreach v $x(*) {
puts "$v = $x($v)"
}
puts ""
}
db close
|