TrasherDK

Results 150 comments of TrasherDK

Update `npm` by running `npm -g i npm` as root. Your installed version of `node` is probably also seriously outdated. Run `node -v && npm -v` to show installed versions.

Not exactly `a minor bump` :laughing:

Okay guys. This is the development repository for a bootstrap/pug framework. It's not a general "I'm fucking clueless, but.." or "I want to X, show me how.." Explain your problem...

Shouldn't there be a catch in there somewhere? What is wrong with this way? ( snippet from #85 ) ```js const transaction = await db.transaction() try { transaction.query(() => ["INSERT...

Okay, still... Should your `rollback()` not be wrapped in a `catch()` ?

**Wut?** I thought `rollback()` actually did a rollback. Isn't that the hole purpose of that command?

In your example snippet above ```js let results = await mysql.transaction() .query('INSERT INTO table (x) VALUES(?)', [1]) .query('UPDATE table SET x = 1') .rollback(e => { /* do something with...

Maybe #85 is what you are looking for.

Looks like invalid SQL to me `"insert into table values (?,?)",[id,123]` should be `"insert into table (?) values (?)",[id,123]` translates to `"insert into table (id) values (123)"`