It's a bit underdocumented at this point; it is not clearly documented how database parameters are passed into the Scheme level. The examples don't use Scheme functions; they instead use let structures, which is definitely more interesting...

What is also unclear is what the interaction between the database engine and the Guile interpreter is; open questions would include: