Update ACE Editor to version 1.32.6
This commit is contained in:

committed by
Sebastian Serth

parent
0a473c7fd3
commit
b00d45521b
@ -1,76 +1,16 @@
|
||||
define("ace/snippets/sqlserver",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# ISNULL\n\
|
||||
snippet isnull\n\
|
||||
ISNULL(${1:check_expression}, ${2:replacement_value})\n\
|
||||
# FORMAT\n\
|
||||
snippet format\n\
|
||||
FORMAT(${1:value}, ${2:format})\n\
|
||||
# CAST\n\
|
||||
snippet cast\n\
|
||||
CAST(${1:expression} AS ${2:data_type})\n\
|
||||
# CONVERT\n\
|
||||
snippet convert\n\
|
||||
CONVERT(${1:data_type}, ${2:expression})\n\
|
||||
# DATEPART\n\
|
||||
snippet datepart\n\
|
||||
DATEPART(${1:datepart}, ${2:date})\n\
|
||||
# DATEDIFF\n\
|
||||
snippet datediff\n\
|
||||
DATEDIFF(${1:datepart}, ${2:startdate}, ${3:enddate})\n\
|
||||
# DATEADD\n\
|
||||
snippet dateadd\n\
|
||||
DATEADD(${1:datepart}, ${2:number}, ${3:date})\n\
|
||||
# DATEFROMPARTS \n\
|
||||
snippet datefromparts\n\
|
||||
DATEFROMPARTS(${1:year}, ${2:month}, ${3:day})\n\
|
||||
# OBJECT_DEFINITION\n\
|
||||
snippet objectdef\n\
|
||||
SELECT OBJECT_DEFINITION(OBJECT_ID('${1:sys.server_permissions /*object name*/}'))\n\
|
||||
# STUFF XML\n\
|
||||
snippet stuffxml\n\
|
||||
STUFF((SELECT ', ' + ${1:ColumnName}\n\
|
||||
FROM ${2:TableName}\n\
|
||||
WHERE ${3:WhereClause}\n\
|
||||
FOR XML PATH('')), 1, 1, '') AS ${4:Alias}\n\
|
||||
${5:/*https://msdn.microsoft.com/en-us/library/ms188043.aspx*/}\n\
|
||||
# Create Procedure\n\
|
||||
snippet createproc\n\
|
||||
-- =============================================\n\
|
||||
-- Author: ${1:Author}\n\
|
||||
-- Create date: ${2:Date}\n\
|
||||
-- Description: ${3:Description}\n\
|
||||
-- =============================================\n\
|
||||
CREATE PROCEDURE ${4:Procedure_Name}\n\
|
||||
${5:/*Add the parameters for the stored procedure here*/}\n\
|
||||
AS\n\
|
||||
BEGIN\n\
|
||||
-- SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.\n\
|
||||
SET NOCOUNT ON;\n\
|
||||
\n\
|
||||
${6:/*Add the T-SQL statements to compute the return value here*/}\n\
|
||||
\n\
|
||||
END\n\
|
||||
GO\n\
|
||||
# Create Scalar Function\n\
|
||||
snippet createfn\n\
|
||||
-- =============================================\n\
|
||||
-- Author: ${1:Author}\n\
|
||||
-- Create date: ${2:Date}\n\
|
||||
-- Description: ${3:Description}\n\
|
||||
-- =============================================\n\
|
||||
CREATE FUNCTION ${4:Scalar_Function_Name}\n\
|
||||
-- Add the parameters for the function here\n\
|
||||
RETURNS ${5:Function_Data_Type}\n\
|
||||
AS\n\
|
||||
BEGIN\n\
|
||||
DECLARE @Result ${5:Function_Data_Type}\n\
|
||||
\n\
|
||||
${6:/*Add the T-SQL statements to compute the return value here*/}\n\
|
||||
\n\
|
||||
END\n\
|
||||
GO";
|
||||
exports.scope = "sqlserver";
|
||||
define("ace/snippets/sqlserver.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# ISNULL\nsnippet isnull\n\tISNULL(${1:check_expression}, ${2:replacement_value})\n# FORMAT\nsnippet format\n\tFORMAT(${1:value}, ${2:format})\n# CAST\nsnippet cast\n\tCAST(${1:expression} AS ${2:data_type})\n# CONVERT\nsnippet convert\n\tCONVERT(${1:data_type}, ${2:expression})\n# DATEPART\nsnippet datepart\n\tDATEPART(${1:datepart}, ${2:date})\n# DATEDIFF\nsnippet datediff\n\tDATEDIFF(${1:datepart}, ${2:startdate}, ${3:enddate})\n# DATEADD\nsnippet dateadd\n\tDATEADD(${1:datepart}, ${2:number}, ${3:date})\n# DATEFROMPARTS \nsnippet datefromparts\n\tDATEFROMPARTS(${1:year}, ${2:month}, ${3:day})\n# OBJECT_DEFINITION\nsnippet objectdef\n\tSELECT OBJECT_DEFINITION(OBJECT_ID('${1:sys.server_permissions /*object name*/}'))\n# STUFF XML\nsnippet stuffxml\n\tSTUFF((SELECT ', ' + ${1:ColumnName}\n\t\tFROM ${2:TableName}\n\t\tWHERE ${3:WhereClause}\n\t\tFOR XML PATH('')), 1, 1, '') AS ${4:Alias}\n\t${5:/*https://msdn.microsoft.com/en-us/library/ms188043.aspx*/}\n# Create Procedure\nsnippet createproc\n\t-- =============================================\n\t-- Author:\t\t${1:Author}\n\t-- Create date: ${2:Date}\n\t-- Description:\t${3:Description}\n\t-- =============================================\n\tCREATE PROCEDURE ${4:Procedure_Name}\n\t\t${5:/*Add the parameters for the stored procedure here*/}\n\tAS\n\tBEGIN\n\t\t-- SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.\n\t\tSET NOCOUNT ON;\n\t\t\n\t\t${6:/*Add the T-SQL statements to compute the return value here*/}\n\t\t\n\tEND\n\tGO\n# Create Scalar Function\nsnippet createfn\n\t-- =============================================\n\t-- Author:\t\t${1:Author}\n\t-- Create date: ${2:Date}\n\t-- Description:\t${3:Description}\n\t-- =============================================\n\tCREATE FUNCTION ${4:Scalar_Function_Name}\n\t\t-- Add the parameters for the function here\n\tRETURNS ${5:Function_Data_Type}\n\tAS\n\tBEGIN\n\t\tDECLARE @Result ${5:Function_Data_Type}\n\t\t\n\t\t${6:/*Add the T-SQL statements to compute the return value here*/}\n\t\t\n\tEND\n\tGO";
|
||||
|
||||
});
|
||||
|
||||
define("ace/snippets/sqlserver",["require","exports","module","ace/snippets/sqlserver.snippets"], function(require, exports, module){"use strict";
|
||||
exports.snippetText = require("./sqlserver.snippets");
|
||||
exports.scope = "sqlserver";
|
||||
|
||||
}); (function() {
|
||||
window.require(["ace/snippets/sqlserver"], function(m) {
|
||||
if (typeof module == "object" && typeof exports == "object" && module) {
|
||||
module.exports = m;
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
Reference in New Issue
Block a user