chickadee » dbi » exec

exec db query #!rest paramsprocedure

Execute the query for its side-effects on the database connection db. params should be rest arguments which replace the corresponding "?" placeholders in query.

Example:

(define mydb (open 'sqlite3 '((dbname . "/tmp/db"))))
(exec mydb
      "INSERT INTO films (name, year) VALUES (?, ?)"
      "The Godfather" 1972)