(no title)
Tenoke
|
10 months ago
db.safe same as the new db.execute with safety checks in it you create for the t-string but yes I can see some benefits (though I'm still not a fan for my own codebases so far) with using the values further or more complex cases than this.
ubercore|10 months ago
I'd prefer the second, myself.
Tenoke|10 months ago
And you add the safety inside db.safe explicitly instead of implicitly in db.execute.
If you want to be fancy you can also assign name to db.foos inside db.safe to use it later (even in execute).
Izkata|10 months ago