First commit.

This commit is contained in:
kj
2022-03-29 19:21:13 -04:00
commit da8f068975
293 changed files with 3002 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

View File

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