title: sqlite3 - insert - javascript object as values
body: <p><strong>What is the easiest solution to use a javascript object as values for a sqlite3 insert?</strong> The following code does not work.</p>
  
  <pre><code>const values = {
    name: 'John',
    age: 34,
    language: 'english'
  };
  
  db.run('INSERT INTO tablename VALUES (?)', values, (err) =&gt; {
    if (err) {
      console.log(err);
    } else {
      console.log('success');
    }
  });
  </code></pre>