It does not take a "array like table" containing a set of records to add at once. But! Lua to the rescue Lua has a built in function 'unpack' which converts a table like array into actual arguments, so:
Code: Select all
db:add(mydb.folks, unpack(persontable))
This API is a bit.. fuzzy, and I apologize for that Lua's single composite data structure and the desire to shield as much true SQL from the masses who weren't interested in learning, led to a lot of .. judgement calls on my part, to try to decide what was Easiest for the Most Common Usage, while still Easy Enough for The Rest. Not all were necessarily perfect