db:prepare(sql)

異なるバインド変数で繰り返し使用できるプリペアド・ステートメントを作成する。 バインドパラメーターは、? 文字がSQL文に含まれている。

db=sqlite.open('testdb')
stmt,err=db:prepare('select count(*) from foo where x > ?')