{
  "getBin": "SELECT * FROM sandbox WHERE url=? AND revision=?",
  "getLatestBin": "SELECT * FROM sandbox WHERE url=? ORDER BY revision DESC LIMIT 1",
  "setBin": "INSERT INTO sandbox (javascript, css, html, created, last_viewed, url, revision, streaming_key) VALUES (?, ?, ?, NOW(), NOW(), ?, ?, ?)",
  "binExists": "SELECT id FROM sandbox WHERE url=? LIMIT 1"
}

{
  "getBin": "SELECT * FROM sandbox WHERE url=? AND revision=?",
  "getLatestBin": "SELECT * FROM sandbox WHERE url=? ORDER BY revision DESC LIMIT 1",
  "setBin": "INSERT INTO sandbox (javascript, css, html, created, last_viewed, url, revision, streaming_key) VALUES (?, ?, ?, NOW(), NOW(), ?, ?, ?)",
  "setBinPanel": "UPDATE sandbox SET :panel=?, created=NOW() WHERE url=? AND revision=? AND streaming_key=? and streaming_key!=''",
  "binExists": "SELECT id FROM sandbox WHERE url=? LIMIT 1"
}

Add sql template for updating a bin panel
Add sql template for updating a bin panel
