feat: stored procedures and funciton parameters support for mssql

This commit is contained in:
Nybkox
2024-11-26 17:05:12 +01:00
parent 35e9ff607d
commit 2b2ecac3ab
11 changed files with 162 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
module.exports = `
SELECT
o.object_id as parentObjectId,
p.object_id as objectId,
p.name AS pureName,
TYPE_NAME(p.user_type_id) AS dataType,
p.max_length AS charMaxLength,
p.precision AS precision,
p.scale AS scale,
p.is_output AS isOutputParameter,
p.parameter_id AS parameterIndex
FROM
sys.objects o
JOIN
sys.parameters p ON o.object_id = p.object_id
WHERE
o.type = 'P'
ORDER BY
o.object_id,
p.parameter_id;
`;