-
Notifications
You must be signed in to change notification settings - Fork 567
Item template expansion - Table Valued functions #21008
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
base: main
Are you sure you want to change the base?
Conversation
PR Changes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21008 +/- ##
==========================================
- Coverage 66.87% 66.87% -0.01%
==========================================
Files 219 219
Lines 21014 21014
Branches 2758 2758
==========================================
- Hits 14054 14053 -1
Misses 6857 6857
- Partials 103 104 +1 🚀 New features to boost your workflow:
|
| @@ -0,0 +1,16 @@ | |||
| CREATE FUNCTION [@@SCHEMA_NAME@@].[@@OBJECT_NAME@@] | |||
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.
Just curious, but why do we need a template?
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.
Template files allow us to add consistent, predefined SQL object stubs and update or expand templates over time without code changes, while keeping object placement and rules in code.
The base branch was changed.
| // Test edge case: leading dot | ||
| result = projController.parseSchemaAndObjectName('.MyFunction'); | ||
| expect(result.schemaName, 'Leading dot should not be treated as schema').to.equal('dbo'); | ||
| expect(result.objectName, 'Full string should be the object name').to.equal('.MyFunction'); |
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.
The dot becomes part of the object name?
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.
yes, we do allow special characters in the name
Pull Request Template – vscode-mssql
Description
This Pr adds:
Code Changes Checklist
npm run test)Reviewers: Please read our reviewer guidelines