Closed blobles-dev closed 5 months ago
I believe you can already implement this yourself:
require("mysqloo")
local QueryMT = FindMetaTable("MySQLOO Query")
QueryMT.rowsAffected = QueryMT.affectedRows
local PreparedQueryMT = FindMetaTable("MySQLOO Prepared Query")
PreparedQueryMT.rowsAffected = PreparedQueryMT.affectedRows
I believe you can already implement this yourself:
require("mysqloo") local MT = FindMetaTable("MySQLOO Database") MT.rowsAffected = MT.affectedRows
Wasn't aware of the meta table names, thank you. Saves me 10 seconds of headache :)
Actually - isnt that the database object? wouldn't it be for the query?
You are right, it is the query of course. I edited my answer.
Hi,
Just a little feature request, would be nice to have an alias of :affectedRows() but instead :rowsAffected(). For some reason I keep typing rowsAffected, which is leading me down a rabbit hole of debugging.
I suspect this is very very low priority and I'm cool with that - it would be nice to just have an interchangeable option, but I can live without it.