Added auctex and yasnippets

This commit is contained in:
TuDatTr
2017-12-21 17:29:29 +01:00
parent 2c6b54e8cc
commit 6cf4b23ee2
1717 changed files with 140403 additions and 9 deletions

View File

@@ -0,0 +1,4 @@
#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,4 @@
#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,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : CONSTRAINT [..] FOREIGN KEY ...
# --
CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])

View File

@@ -0,0 +1,10 @@
#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,12 @@
#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; -*-
# name: insert
# key: ins
# --
INSERT INTO ${table-name} (${col1, col2}) VALUES (${'val1', 'val2'});$0

View File

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