-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.x quoter #132
3.x quoter #132
Conversation
Thank you for pinging. I am not sure what advantage do you see in moving to a separate class than passing the string? |
@harikt it removes db specific config from the generic QueryFactory class https://github.com/auraphp/Aura.SqlQuery/pull/132/files#diff-f4d2c86a7d03f40d9533ddaca828a28fL47 into the db specific driver directory, which is an improvement in clarity. It makes the quoter re-usable too (eg in Aura.Sql?). @pmjones how is the test coverage? I can't seem to find it... |
@harikt As @pavarnos notes, it's "better form" than before, but not in any way functionally critical. @pavarnos Test is at https://github.com/auraphp/Aura.SqlQuery/pull/132/files#diff-c13b8f7f14b2d2fbc0552d98128d064f and coverage should be the same as before (i.e. 100%); the db-specific quoters only modify properties, not methods. Cf. https://scrutinizer-ci.com/g/auraphp/Aura.SqlQuery/?branch=3.x Other thoughts? |
The quoter is actually introduced in auraphp/Aura.Sql#153 . So I doubt about it. |
Thanks. Temporary blindness: I cannot find the coverage report / percentage?
|
@pmjones I was answering to @pavarnos
The quoter is actually introduced in auraphp/Aura.Sql#153 . So I doubt about it. Probably the Quoter in that case can be moved out. But that may break what we advertise, but less things being duplicated. |
@pmjones I am 👍 . So "go" . |
good with me |
Thanks folks. Back to #108 ! |
This PR creates separate quoter classes for each driver (notably mysql and sqlsrv).
@harikt @pavarnos Thoughts?