You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor mssql dialect as per pull 2do2go#26 feedback
This commit refactors the `mssql` dialect as per the feedback
from @artzhookov on 2do2go#26.
- Include all test files in gulp lint tasks
- Move mssql `value` block override to blocks.js
- Update mssql `limit` block to use `_.isUndefined`
- Clean up minor mssql sql letter case and format
- Set the `mssql` `identifier` `prefix` and `suffix`
This commit also introduces two changes to the `base` dialect.
- Refactor the `base `insert:values` `block` function to clean up
the logic
- Refactor the `mssql` `inserted:values` `block` function to match
the `base` function, and also include `returning` params, as it
is needed. (mssql puts `output` keyword before `values` keyword)
- Update `buildTemplate` to include an edge case where a `buildBlock`
function does not return any value. This prevents unnecessary
whitespace in the final query string.
These changes are not strictly necessary. The `mssql` `insert:values` `block`
could use the same structure as the original `base` `block`, and unnecessary
whitespace has no issues in terms of functionality, simply ascetics.
This commit refactors the `mssql` tests as per the changes made.
Test coverage and layout is not ideal, but functional.
0 commit comments