meteor-mysql
meteor-mysql copied to clipboard
How can insert or update new row ?
Hi Numtel. I see your demo, we can show data from mysql db. But quick question. How can insert or update new row like Mongo.insert? Thank you
For updating or inserting use the node-mysql connection exposed on the LiveMysql.db property
.
liveDb = new LiveMysql(sqlsettings);
liveDb.db.query("INSERT INTO ...", (err, res) => {
// do something
});
can new LiveMysql() run at the client side?