I was just using javascript and the api to test it out. This isn't the actual table and values I was
I was just using javascript and the api to test it out. This isn't the actual table and values I was using, I just made this as an example (ignore the italics, that was discord):
sql = `INSERT INTO tablename (itemOne, itemTwo) VALUES ('test one', 'test " two')`
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json', Authorization: 'Bearer __'},
body: `{"sql":"${sql}"}`
};
fetch('https://api.cloudflare.com/client/v4/accounts/___/d1/database/___/query', options)
.then(response => response.json())
.then(response => {console.log(response)})
.catch(err => console.error(err));
sql = `INSERT INTO tablename (itemOne, itemTwo) VALUES ('test one', 'test " two')`
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json', Authorization: 'Bearer __'},
body: `{"sql":"${sql}"}`
};
fetch('https://api.cloudflare.com/client/v4/accounts/___/d1/database/___/query', options)
.then(response => response.json())
.then(response => {console.log(response)})
.catch(err => console.error(err));

