Skip to content

Parameterized Query inside the datetime function #376

Open
@robonetphy

Description

@robonetphy

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 of sqlite like as follow:

  // Define Queries
  std::string insert_counting_log_query = "INSERT INTO log VALUES (NULL, :job_name, :part_name,\n"
       ":batch_name,   datetime('now','-:time_passed second', 'localtime'), datetime('now', 'localtime'));";
  // need to note batch start and end time.
  // end time can be note with datetime('now','localtime')
  // for start time I have number of seconds before the job started as passed time
  // looking for feature like datetime('now','-:time_passed second', 'localtime')

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions