-
Notifications
You must be signed in to change notification settings - Fork 39
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
Clean up sql server meta data #246
Conversation
Thanks for looking into this mate, some clean up is welcome! I do have a couple of questions/concerns that I'll raise here without really knowing whether they're showstoppers from @erikbra 's point of PoV or not.
Sorry it's taking some time to review all this stuff, time is precious for me atm :( |
I'm on a bit of a tear - having settled on Right now I'm going to be deploying on SQL Server, but after the new year I may well find myself needing to target Greenplum (a PostgreSql variant) - and I need both these two new features I'm working on. It's up to y'all if you're interested in consuming my upstream changes! |
Sorry there's no existing bug logged, it's not something I'd considered either until I was was thinking about the impacts of your change. |
public string TableWithSchema(string schemaName, string tableName) => $"[{schemaName}].{tableName}"; | ||
public string ReturnId => ";Select Scope_Identity()"; | ||
public string TimestampType => "DateTime2(0)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer more than one-second precision here, is there any reason not to use Datetime2(7) ?
Thanks a lot for you contribution, @RachelAmbler ! I appreciate more people becoming active in the development of grate!! I don't have any problems replacing ntext with nvarchar(max). I know ntext is obsoleted, even if it still works. But, maybe better to change it, that't the point of obsoletion, isn't it, to give people (us) time to move away from it :) I have a small question regarding the change in casing on the SQL server commands. Is there any special reason you have changed the keywords from CAPITAL to PascalCase? I tried to find some style guides for T-SQL here, but I couldn't find any by googling. Are you aware of any? Technically, it doesn't matter. I just wonder if there was a particular reason for the change. Good catch on the |
This has been laying here a long time, and not been merged. The source code is restructured quite a lot since this PR, and #501 solved much of this, so I'll close this for now. Please open new issues if there are things left that needs updating/fixing, @RachelAmbler |
Fixes #243 (now even passes testing!)