Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let query = `INSERT INTO ${table} (timestamp, lattitude, longitude, type) VALUES `;
- locationData.forEach(location => {
- query += `('${location.timestamp}', '${location.lattitude}', '${location.longitude}', '${type}'), `;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement