Open robonetphy opened 1 year ago
This should already work. However, you can't pass in a parameter into a string, but you can pass in the full string.
Something like
INSERT INTO log VALUES (NULL, :job_name, :part_name,
:batch_name, datetime('now', :time_passed, 'localtime'), datetime('now', 'localtime')
then bind with
query.bind("time_passed", "-30 second");
@dougnazar Thanks for the solution. My doubts are resolved. @SRombauts Pls let me know if you are planning for these enhancements.
Hey There, It been long time since we are using your library, but I have one query for you that is it possible to add
parameterize
internal function ofsqlite
like as follow: