Skip to content

Instantly share code, notes, and snippets.

@vschiavoni
Last active August 29, 2015 14:22
Show Gist options
  • Save vschiavoni/323ee854bd18a1af34df to your computer and use it in GitHub Desktop.
Save vschiavoni/323ee854bd18a1af34df to your computer and use it in GitHub Desktop.
#legacy
sql_insert_new_job = "INSERT INTO jobs SET ref='#{ref}' #{to_sql(options)}, #{description_field} #{name_field} #{churn_field} code='#{addslashes(code)}', #{lib_filename_field} user_id=#{user_id}, created_at='#{time_now}' #{topology_field}"
$db.do(sql_insert_new_job)
#to port using Sequel
$db(:jobs).insert(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment