Why do you think that for x in exec(dbx,sql"SELECT * FROM myTestTbl"):
should work. I think exec is a proc without a return value, so you can not iterate with "for x in". You may try the iterators like rows or maybe a proc with a return value, maybe a string. I guess my response is not too helpful for you -- I have never used databases in Nim yet.