Changeset 33760 in project


Ignore:
Timestamp:
12/09/16 17:51:15 (12 months ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [192.55.55.41]: Corrected parameter ordering in for-each-row example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/dbi

    r33561 r33760  
    138138<enscript highlight="scheme">
    139139(define mydb (open 'sqlite3 '((dbname . "/tmp/db"))))
    140 (row-for-each mydb
    141               (lambda (tuple)
     140(for-each-row (lambda (tuple)
    142141                (print (vector-ref tuple 0) " -- " (vector-ref tuple 1)))
     142              mydb
    143143              "SELECT name, year FROM films WHERE name = ? OR name = ?"
    144144              "The Godfather" "Alien")
Note: See TracChangeset for help on using the changeset viewer.