This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

5
snippets/sql-mode/column Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: , ColumnName ColumnType NOT NULL...
# --
, ${1:Name} ${2:Type} ${3:NOT NULL}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: CONSTRAINT [..] PRIMARY KEY ...
# --
CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}])

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: CONSTRAINT [..] FOREIGN KEY ...
# --
CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])

11
snippets/sql-mode/create Normal file
View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: create table ...
# --
CREATE TABLE [${1:dbo}].[${2:TableName}]
(
${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL}
$0
CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
)
GO

View File

@@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: create procedure ...
# --
CREATE PROCEDURE [${1:dbo}].[${2:Name}]
(
$3 $4 = ${5:NULL} ${6:OUTPUT}
)
AS
BEGIN
$0
END
GO

5
snippets/sql-mode/insert Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet; -*-
# name: insert
# key: ins
# --
INSERT INTO ${table-name} (${col1, col2}) VALUES (${'val1', 'val2'});$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: REFERENCES ...
# --
REFERENCES ${1:TableName}([${2:ColumnName}])