title: how to use upsert in react native sqlite database
body: <p>I have a table in react native SQLite with 2 columns app_name,key</p>
  <p>I want to update a value if it exists based on app_name else insert new data I tried the following</p>
  <pre><code> db.transaction(function (tx) {
                tx.executeSql(
                  'Insert or Ignore Into client_registration (app_name, key) values(?,?); UPDATE client_registration SET app_name=?, key=? where changes() = 0 and &quot;app_name&quot; = ?;',
                  ['coin', 123],
                  (tx, results) =&gt; {
                    if (results.rowsAffected &gt; 0) {
                     console.log('success')
                      );
                    } else console.log('Registration Failed');
                  },
                );
              }); 
  </code></pre>
  <p>i am unable to ge any output .</p>