From 985924a9158da12f4050c1a4037b4e3258485ab1 Mon Sep 17 00:00:00 2001 From: "Kevin R. Raney" Date: Fri, 2 Jan 2026 10:15:59 -0500 Subject: [PATCH 1/3] #153 Update snippets to the new JSON format This resolves #153 by converting the old SQL Prompt snippets from xml to JSON. It also removes the ssms sql project and updates the readme from txt to markdown. --- Snippets/{ReadMe.txt => README.md} | 16 +- Snippets/Snippets.ssmssqlproj | 250 ------------------ ...-f345a432-8e6b-4d35-bfc5-dd037df27c15.json | 6 + Snippets/ida.sqlpromptsnippet | Bin 1148 -> 0 bytes ...-0a7ab066-938a-4b14-8737-c86af501a7cc.json | 6 + Snippets/idf.sqlpromptsnippet | Bin 1126 -> 0 bytes ...-6ec31ee9-825a-41ff-8b7f-3631742e438d.json | 6 + Snippets/idl.sqlpromptsnippet | Bin 1102 -> 0 bytes ...-64e12dc7-3127-44aa-9c6f-b4654df45d4b.json | 6 + Snippets/idp.sqlpromptsnippet | Bin 1132 -> 0 bytes ...-519e7ad1-caef-46bc-a16f-439adf762cad.json | 6 + Snippets/ids.sqlpromptsnippet | Bin 1112 -> 0 bytes ...-b5b03738-987b-4049-91fa-7d78c298e7e1.json | 6 + Snippets/idt.sqlpromptsnippet | Bin 1104 -> 0 bytes ...-801c48e6-6fa3-4313-aa39-3c6f1957606a.json | 6 + Snippets/idtr.sqlpromptsnippet | Bin 1128 -> 0 bytes ...-f2efaf3b-c1ac-4b6c-b74d-afb0d5e3c20c.json | 6 + Snippets/idu.sqlpromptsnippet | Bin 1094 -> 0 bytes ...-678ed497-bed1-4917-8ca7-381f66fb7c10.json | 6 + Snippets/idv.sqlpromptsnippet | Bin 1112 -> 0 bytes Snippets/snippets.sql | 99 +++---- ...-79648b3c-3560-4c13-9057-9da7cd13ce0c.json | 6 + Snippets/tab.sqlpromptsnippet | Bin 6026 -> 0 bytes ...-747cd3ce-14d7-473e-a42b-28418b597e89.json | 6 + Snippets/tac.sqlpromptsnippet | Bin 1252 -> 0 bytes ...-3e910591-b3d5-4f2d-9153-4d20b2f65656.json | 6 + Snippets/tal.sqlpromptsnippet | Bin 1218 -> 0 bytes ...-16d83281-6d7e-4327-81fc-75fefce996a3.json | 6 + Snippets/tat.sqlpromptsnippet | Bin 1234 -> 0 bytes ...-518a2895-ef22-4f49-a3ab-4a9807475509.json | 6 + Snippets/tca.sqlpromptsnippet | Bin 1198 -> 0 bytes ...-df75f607-20c5-474d-bb43-a7dea61b0dbb.json | 6 + Snippets/tce.sqlpromptsnippet | Bin 1310 -> 0 bytes ...-e1d61823-f962-4817-b46b-1fa45d0f155e.json | 6 + Snippets/tco.sqlpromptsnippet | Bin 1304 -> 0 bytes ...-de08e455-b344-40d1-bec7-056d0d4f22ce.json | 6 + Snippets/tct.sqlpromptsnippet | Bin 1216 -> 0 bytes ...-6aff4b67-6976-4d9c-bc3c-d9357da6a676.json | 6 + Snippets/te.sqlpromptsnippet | Bin 1208 -> 0 bytes ...-24e2fa41-6d2e-4ab4-abf5-e61515af074f.json | 6 + Snippets/tes.sqlpromptsnippet | Bin 1236 -> 0 bytes ...-79fc09fc-5525-4e31-bc4c-04908b82b72d.json | 6 + Snippets/tet.sqlpromptsnippet | Bin 1216 -> 0 bytes ...-96133107-7dc4-47b7-8507-59abed6c291a.json | 6 + Snippets/tf.sqlpromptsnippet | Bin 1134 -> 0 bytes ...-af43e66b-f6a1-4470-b88b-db219eeb4fbb.json | 6 + Snippets/tff.sqlpromptsnippet | Bin 1250 -> 0 bytes ...-0aed70b3-4fc7-49a2-a286-73e07dd91829.json | 6 + Snippets/tft.sqlpromptsnippet | Bin 1288 -> 0 bytes ...-2cdd7cf3-a745-400c-9fc2-8038b7dfe13b.json | 6 + Snippets/tie.sqlpromptsnippet | Bin 1200 -> 0 bytes ...-4ee3d830-ca84-48bb-8675-f754b78c6d7f.json | 6 + Snippets/tmt.sqlpromptsnippet | Bin 1212 -> 0 bytes ...-f148752f-b077-45d6-8d34-b4cf121196d0.json | 6 + Snippets/tnc.sqlpromptsnippet | Bin 1192 -> 0 bytes ...-2d99357a-cb56-43dd-a351-442f1aeb4c46.json | 6 + Snippets/tne.sqlpromptsnippet | Bin 1224 -> 0 bytes ...-ead15f93-6194-4f96-98e6-e6354292140d.json | 6 + Snippets/tnt.sqlpromptsnippet | Bin 1282 -> 0 bytes ...-93a78b96-b01f-4681-8646-a2d8fcf3eb34.json | 6 + Snippets/toe.sqlpromptsnippet | Bin 1222 -> 0 bytes ...-c2a18766-36e2-4628-b9a2-16887c69d164.json | 6 + Snippets/tpc.sqlpromptsnippet | Bin 2188 -> 0 bytes ...-e83dcd46-f555-4a3c-9139-2e2199fe2f33.json | 6 + Snippets/trf.sqlpromptsnippet | Bin 1240 -> 0 bytes ...-7f9ed1aa-cd8f-45ca-9897-d44ee1a7f6ef.json | 6 + Snippets/tro.sqlpromptsnippet | Bin 1198 -> 0 bytes ...-92d0b23c-4689-4102-867f-9882e86145ac.json | 6 + Snippets/tso.sqlpromptsnippet | Bin 1200 -> 0 bytes ...-dd0270a1-aee1-49da-aef3-1e932fa22003.json | 6 + Snippets/tsp.sqlpromptsnippet | Bin 1256 -> 0 bytes ...-e00c1ace-c5a1-4a51-acf3-b800df50bc8b.json | 6 + Snippets/txe.sqlpromptsnippet | Bin 1318 -> 0 bytes ...-0b75b58e-18b8-40d2-9c0e-6bc31def0a60.json | 6 + Snippets/txn.sqlpromptsnippet | Bin 1172 -> 0 bytes ...-37aefeab-e603-4701-bd2c-d294564b25bb.json | 6 + Snippets/txp.sqlpromptsnippet | Bin 1348 -> 0 bytes 77 files changed, 284 insertions(+), 303 deletions(-) rename Snippets/{ReadMe.txt => README.md} (77%) delete mode 100644 Snippets/Snippets.ssmssqlproj create mode 100644 Snippets/ida-f345a432-8e6b-4d35-bfc5-dd037df27c15.json delete mode 100644 Snippets/ida.sqlpromptsnippet create mode 100644 Snippets/idf-0a7ab066-938a-4b14-8737-c86af501a7cc.json delete mode 100644 Snippets/idf.sqlpromptsnippet create mode 100644 Snippets/idl-6ec31ee9-825a-41ff-8b7f-3631742e438d.json delete mode 100644 Snippets/idl.sqlpromptsnippet create mode 100644 Snippets/idp-64e12dc7-3127-44aa-9c6f-b4654df45d4b.json delete mode 100644 Snippets/idp.sqlpromptsnippet create mode 100644 Snippets/ids-519e7ad1-caef-46bc-a16f-439adf762cad.json delete mode 100644 Snippets/ids.sqlpromptsnippet create mode 100644 Snippets/idt-b5b03738-987b-4049-91fa-7d78c298e7e1.json delete mode 100644 Snippets/idt.sqlpromptsnippet create mode 100644 Snippets/idtr-801c48e6-6fa3-4313-aa39-3c6f1957606a.json delete mode 100644 Snippets/idtr.sqlpromptsnippet create mode 100644 Snippets/idu-f2efaf3b-c1ac-4b6c-b74d-afb0d5e3c20c.json delete mode 100644 Snippets/idu.sqlpromptsnippet create mode 100644 Snippets/idv-678ed497-bed1-4917-8ca7-381f66fb7c10.json delete mode 100644 Snippets/idv.sqlpromptsnippet create mode 100644 Snippets/tab-79648b3c-3560-4c13-9057-9da7cd13ce0c.json delete mode 100644 Snippets/tab.sqlpromptsnippet create mode 100644 Snippets/tac-747cd3ce-14d7-473e-a42b-28418b597e89.json delete mode 100644 Snippets/tac.sqlpromptsnippet create mode 100644 Snippets/tal-3e910591-b3d5-4f2d-9153-4d20b2f65656.json delete mode 100644 Snippets/tal.sqlpromptsnippet create mode 100644 Snippets/tat-16d83281-6d7e-4327-81fc-75fefce996a3.json delete mode 100644 Snippets/tat.sqlpromptsnippet create mode 100644 Snippets/tca-518a2895-ef22-4f49-a3ab-4a9807475509.json delete mode 100644 Snippets/tca.sqlpromptsnippet create mode 100644 Snippets/tce-df75f607-20c5-474d-bb43-a7dea61b0dbb.json delete mode 100644 Snippets/tce.sqlpromptsnippet create mode 100644 Snippets/tco-e1d61823-f962-4817-b46b-1fa45d0f155e.json delete mode 100644 Snippets/tco.sqlpromptsnippet create mode 100644 Snippets/tct-de08e455-b344-40d1-bec7-056d0d4f22ce.json delete mode 100644 Snippets/tct.sqlpromptsnippet create mode 100644 Snippets/te-6aff4b67-6976-4d9c-bc3c-d9357da6a676.json delete mode 100644 Snippets/te.sqlpromptsnippet create mode 100644 Snippets/tes-24e2fa41-6d2e-4ab4-abf5-e61515af074f.json delete mode 100644 Snippets/tes.sqlpromptsnippet create mode 100644 Snippets/tet-79fc09fc-5525-4e31-bc4c-04908b82b72d.json delete mode 100644 Snippets/tet.sqlpromptsnippet create mode 100644 Snippets/tf-96133107-7dc4-47b7-8507-59abed6c291a.json delete mode 100644 Snippets/tf.sqlpromptsnippet create mode 100644 Snippets/tff-af43e66b-f6a1-4470-b88b-db219eeb4fbb.json delete mode 100644 Snippets/tff.sqlpromptsnippet create mode 100644 Snippets/tft-0aed70b3-4fc7-49a2-a286-73e07dd91829.json delete mode 100644 Snippets/tft.sqlpromptsnippet create mode 100644 Snippets/tie-2cdd7cf3-a745-400c-9fc2-8038b7dfe13b.json delete mode 100644 Snippets/tie.sqlpromptsnippet create mode 100644 Snippets/tmt-4ee3d830-ca84-48bb-8675-f754b78c6d7f.json delete mode 100644 Snippets/tmt.sqlpromptsnippet create mode 100644 Snippets/tnc-f148752f-b077-45d6-8d34-b4cf121196d0.json delete mode 100644 Snippets/tnc.sqlpromptsnippet create mode 100644 Snippets/tne-2d99357a-cb56-43dd-a351-442f1aeb4c46.json delete mode 100644 Snippets/tne.sqlpromptsnippet create mode 100644 Snippets/tnt-ead15f93-6194-4f96-98e6-e6354292140d.json delete mode 100644 Snippets/tnt.sqlpromptsnippet create mode 100644 Snippets/toe-93a78b96-b01f-4681-8646-a2d8fcf3eb34.json delete mode 100644 Snippets/toe.sqlpromptsnippet create mode 100644 Snippets/tpc-c2a18766-36e2-4628-b9a2-16887c69d164.json delete mode 100644 Snippets/tpc.sqlpromptsnippet create mode 100644 Snippets/trf-e83dcd46-f555-4a3c-9139-2e2199fe2f33.json delete mode 100644 Snippets/trf.sqlpromptsnippet create mode 100644 Snippets/tro-7f9ed1aa-cd8f-45ca-9897-d44ee1a7f6ef.json delete mode 100644 Snippets/tro.sqlpromptsnippet create mode 100644 Snippets/tso-92d0b23c-4689-4102-867f-9882e86145ac.json delete mode 100644 Snippets/tso.sqlpromptsnippet create mode 100644 Snippets/tsp-dd0270a1-aee1-49da-aef3-1e932fa22003.json delete mode 100644 Snippets/tsp.sqlpromptsnippet create mode 100644 Snippets/txe-e00c1ace-c5a1-4a51-acf3-b800df50bc8b.json delete mode 100644 Snippets/txe.sqlpromptsnippet create mode 100644 Snippets/txn-0b75b58e-18b8-40d2-9c0e-6bc31def0a60.json delete mode 100644 Snippets/txn.sqlpromptsnippet create mode 100644 Snippets/txp-37aefeab-e603-4701-bd2c-d294564b25bb.json delete mode 100644 Snippets/txp.sqlpromptsnippet diff --git a/Snippets/ReadMe.txt b/Snippets/README.md similarity index 77% rename from Snippets/ReadMe.txt rename to Snippets/README.md index 03595a672..b41f4b1cc 100644 --- a/Snippets/ReadMe.txt +++ b/Snippets/README.md @@ -1,8 +1,10 @@ -This zip file contains a set of SQL Prompt snippets for use with Red Gate SQL Prompt. - -Red Gate SQL Prompt is not part of tSQLt and not required to use tSQLt. -You can get it here:http://www.red-gate.com/products/sql-development/sql-prompt/ - -To install the tSQLt snippets, unzip this zip file into the SQL Prompt Snippet Directory. -This directory is usually located in "AppData\Local\Red Gate\SQL Prompt 6\Snippets" +# SQL Prompt Snippets + +This zip file contains a set of SQL Prompt snippets for use with Red Gate SQL Prompt. + +Red Gate SQL Prompt is not part of tSQLt and not required to use tSQLt. +You can get it here:http://www.red-gate.com/products/sql-development/sql-prompt/ + +To install the tSQLt snippets, unzip this zip file into the SQL Prompt Snippet Directory. +This directory is usually located in `%localappdata%\Red Gate\SQL Prompt *\Snippets` under your local user directory. \ No newline at end of file diff --git a/Snippets/Snippets.ssmssqlproj b/Snippets/Snippets.ssmssqlproj deleted file mode 100644 index c441bd374..000000000 --- a/Snippets/Snippets.ssmssqlproj +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - - - - - - snippets.sql - - - - - - - - - - ReadMe.txt - - - - - - ida.sqlpromptsnippet - - - - - - idf.sqlpromptsnippet - - - - - - idl.sqlpromptsnippet - - - - - - idp.sqlpromptsnippet - - - - - - ids.sqlpromptsnippet - - - - - - idt.sqlpromptsnippet - - - - - - idtr.sqlpromptsnippet - - - - - - idu.sqlpromptsnippet - - - - - - idv.sqlpromptsnippet - - - - - - tab.sqlpromptsnippet - - - - - - tac.sqlpromptsnippet - - - - - - tal.sqlpromptsnippet - - - - - - tat.sqlpromptsnippet - - - - - - tca.sqlpromptsnippet - - - - - - tce.sqlpromptsnippet - - - - - - tco.sqlpromptsnippet - - - - - - tct.sqlpromptsnippet - - - - - - te.sqlpromptsnippet - - - - - - tes.sqlpromptsnippet - - - - - - tet.sqlpromptsnippet - - - - - - tf.sqlpromptsnippet - - - - - - tff.sqlpromptsnippet - - - - - - tft.sqlpromptsnippet - - - - - - tie.sqlpromptsnippet - - - - - - tmt.sqlpromptsnippet - - - - - - tnc.sqlpromptsnippet - - - - - - tne.sqlpromptsnippet - - - - - - tnt.sqlpromptsnippet - - - - - - toe.sqlpromptsnippet - - - - - - tpc.sqlpromptsnippet - - - - - - trf.sqlpromptsnippet - - - - - - tro.sqlpromptsnippet - - - - - - tso.sqlpromptsnippet - - - - - - tsp.sqlpromptsnippet - - - - - - txe.sqlpromptsnippet - - - - - - txn.sqlpromptsnippet - - - - - - txp.sqlpromptsnippet - - - - - \ No newline at end of file diff --git a/Snippets/ida-f345a432-8e6b-4d35-bfc5-dd037df27c15.json b/Snippets/ida-f345a432-8e6b-4d35-bfc5-dd037df27c15.json new file mode 100644 index 000000000..5f6c2cd88 --- /dev/null +++ b/Snippets/ida-f345a432-8e6b-4d35-bfc5-dd037df27c15.json @@ -0,0 +1,6 @@ +{ + "id": "f345a432-8e6b-4d35-bfc5-dd037df27c15", + "prefix": "ida", + "description": "IF EXISTS DROP: Assembly - [provided by @sqlity]", + "body": "IF ASSEMBLYPROPERTY('$CURSOR$','CLRName') IS NOT NULL DROP ASSEMBLY ;" +} \ No newline at end of file diff --git a/Snippets/ida.sqlpromptsnippet b/Snippets/ida.sqlpromptsnippet deleted file mode 100644 index e8a5c88c2d33fe6be8c309d6ca2c892e0caa8d9c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1148 zcmZ{j-7f=C5XH~4#Q$)Kq$ECHJWyp7A@P-NB}6MD!-`s2Iw!7Kv-j6vm zbLPzK_g7up`cPNTavCaCUzs|3QBPZ%)tZ*I%IdK6bjSTY)}9`{^<4u!XbIFhm~AyQ zttr*j^teokFf!IfTd=puKA^G` zYX@9H-W84B8s9u#@QL;084Re_>KpZ(v`zZ&kuAfw?<*hhH7y%DqB5s_U9yYe5Odm7 zOJ_RQ2KxxF4BxJ9Vf@L>67MzI^@%X_{8MUh*v+~F`VFL2_^BITSyk>ymXWV5RO-;A zOub_F+GMdlj&^ZexzTRt_y#q9;F+L8K3Ud<^5|tes<7isENb;c)WL)k!XBKVinxT_T`W?~vh<%ub2u?BjoM@K_S4={f zhke#I=XupMhu;O~m`Q1Is%eq83BILMvUSN;(*hiAt{it~_}Y2_=9pbRWj15Qd`_E8 d&W&fd^7q#km6`0-zuj!P2E~2`Otsy5_XFjBsR#f7 diff --git a/Snippets/idf-0a7ab066-938a-4b14-8737-c86af501a7cc.json b/Snippets/idf-0a7ab066-938a-4b14-8737-c86af501a7cc.json new file mode 100644 index 000000000..34b347978 --- /dev/null +++ b/Snippets/idf-0a7ab066-938a-4b14-8737-c86af501a7cc.json @@ -0,0 +1,6 @@ +{ + "id": "0a7ab066-938a-4b14-8737-c86af501a7cc", + "prefix": "idf", + "description": "IF EXISTS DROP: Function - [provided by @sqlity]", + "body": "IF OBJECT_ID('$CURSOR$') IS NOT NULL DROP FUNCTION ;\nGO\n" +} \ No newline at end of file diff --git a/Snippets/idf.sqlpromptsnippet b/Snippets/idf.sqlpromptsnippet deleted file mode 100644 index 590a7ce49529f2b5431a90487832aae280f3ac2c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1126 zcmZ{j-Ae*N6vfYT(El(=P(AeZ(nFbM+9#3GDg+_1)n-CjsY(6w)$h)w)`6tbKL8^;07~X&tW}e5$Hw zQ41=o?)?%)c=q(pm*6@4w>z>G`8XXDI{;5i!~{V=5%ODn$Z<;E7(|A8+7|3Bs*hln zVC~`eMBPngZw+snFT_N8_6SC>HGbL1dE0z^gK9%!2cG$e)wHbW3}#M8x?vZAA>!1~ zwVJxpF8gDunZjv=LszF;v>T9N?C~dXaJttw>j70h;ARZJ)$z=VYR{vrd2WHJLz6u9 zrn}doiuEzu#aZRD-A?^0aQ-4PhFv;Y)`k4+c{qxEXOURe;)y8FRLrYn`aPg&jOI3f zp?5>n&Q~a%bEgZ>uZyZNZzJ)O8~Rg1+p?DEWSxH3=zNWRn1-efb&fuDZtu8jXjLm( z=G7(~8zWU{m9C$z99;+tj>Zm(Gw)P#e4DI>YM{+n#@qC!A~oI(&v@6CZoW X_A0WIG2fMmJsUOMx!_Z5w=Vqw^d_Xl diff --git a/Snippets/idl-6ec31ee9-825a-41ff-8b7f-3631742e438d.json b/Snippets/idl-6ec31ee9-825a-41ff-8b7f-3631742e438d.json new file mode 100644 index 000000000..f3c3c71c3 --- /dev/null +++ b/Snippets/idl-6ec31ee9-825a-41ff-8b7f-3631742e438d.json @@ -0,0 +1,6 @@ +{ + "id": "6ec31ee9-825a-41ff-8b7f-3631742e438d", + "prefix": "idl", + "description": "IF EXISTS DROP: Login - [provided by @sqlity]", + "body": "IF SUSER_SID('$CURSOR$') IS NOT NULL DROP LOGIN ;" +} \ No newline at end of file diff --git a/Snippets/idl.sqlpromptsnippet b/Snippets/idl.sqlpromptsnippet deleted file mode 100644 index a58471e53c650baffc397fbb0fafde913682899e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1102 zcmZ{jUrPc}5XH}P(0AA*upZ2M>7h&$vl2wZRR}_2v(1FEQj7ZX)o<=?^WQGw?)A=@ znRDihKi?%)^r>e(DbR;vO*GX=FBzY#thmc=q z>Zq+N9dT}g8-gBlF7Ul!Y7_209P=3Vf$sFh^OX8;XfbVH>N`zYUDx?lohq*}U>a$2 zTlTF>7jtmYztx#7`kdg)sQn}}LQ}F+HvjbMX*{y9t4yqF_AZoGI;M59`3;z9#LR8; zylYdYoj##t!_7C-H)N_2&)Ds(_b10}OWMN88ctX7yvo_{L8uiB=lyFq+Md2NI2 zaTl@`9e(At3j^DiKrQaN?%ktjlT)%i#-XhXa4l|+*@(XDT>SqZE-PO5U>>(vqHWnH JkI9akC%-E5q5uE@ diff --git a/Snippets/idp-64e12dc7-3127-44aa-9c6f-b4654df45d4b.json b/Snippets/idp-64e12dc7-3127-44aa-9c6f-b4654df45d4b.json new file mode 100644 index 000000000..e74db3749 --- /dev/null +++ b/Snippets/idp-64e12dc7-3127-44aa-9c6f-b4654df45d4b.json @@ -0,0 +1,6 @@ +{ + "id": "64e12dc7-3127-44aa-9c6f-b4654df45d4b", + "prefix": "idp", + "description": "IF EXISTS DROP: Procedure - [provided by @sqlity]", + "body": "IF OBJECT_ID('$CURSOR$') IS NOT NULL DROP PROCEDURE ;\nGO\n" +} \ No newline at end of file diff --git a/Snippets/idp.sqlpromptsnippet b/Snippets/idp.sqlpromptsnippet deleted file mode 100644 index b7db938a27f693392361d17d7ababd04141b47b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1132 zcmZ{jTT8=05QWdP;D1;}P#?U#_@J>`Q?C@2rUgMnqDC!f)wYWL^XfOd2GcenwAsv= z%bA(8Ki`pd^`#d*%jr{@`WmRKSM{``d2MJ_>%1LEPj}ewL3?`i=!b@S&O(rq zK)d+8QFl#6tMSeAg_uN7p23iAt-oUAG&UXIpxS`gzVCdQ6JR`~E_= zj=7XgaD0Pps@N`zo1C0papSpvjlRE#OqoQkF55(T_A(w-zLQKWYqct(iHc>FY<_pl zG-c+d!LYvp(=MM-u63uT@9&YRrreLrt2gXtp4mp4W0NsEue1F+=b(sl?dz2J#8_{z zHMFEfE%4nz9SQnq@wKRB7?^UL&ak!pyF<+;r(8#-B2!dMzJ`xK0NwVt@(8r|zl diff --git a/Snippets/ids-519e7ad1-caef-46bc-a16f-439adf762cad.json b/Snippets/ids-519e7ad1-caef-46bc-a16f-439adf762cad.json new file mode 100644 index 000000000..7e4cf2eeb --- /dev/null +++ b/Snippets/ids-519e7ad1-caef-46bc-a16f-439adf762cad.json @@ -0,0 +1,6 @@ +{ + "id": "519e7ad1-caef-46bc-a16f-439adf762cad", + "prefix": "ids", + "description": "IF EXISTS DROP: Synonym - [provided by @sqlity]", + "body": "IF OBJECT_ID('$CURSOR$') IS NOT NULL DROP SYNONYM ;" +} \ No newline at end of file diff --git a/Snippets/ids.sqlpromptsnippet b/Snippets/ids.sqlpromptsnippet deleted file mode 100644 index 4e6ec86b8cbbc70092cee77ef83953951af44192..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1112 zcmZ{j+b#o96o&t6iFepUf(xe`7gVX1Aa#hTgowzfQB5d1)wC~Zyjj0c6Y1F_=)udrGOnmvuO;<*K;4o&jZ z8+Wh46!US^#YyEx-OlpMa2`+@!z|k@b0NQb9*&~iNhH>_cq2*^6Z0mSeoZuu(cJbg zc$cDfzCziaJJmhE7OKX48;RfC;LkkTmNbWxRs62te1&t^hI8%f1bwR9-g8&ek`}eV z`xToJu^X4XEovDAwlz*?+%^33ikWpz*$&wT-T3$!&r>4XY{i|QzV`P;j3{Lp#LyMU|p1T(?ywPT2x4es}O|5W}69RrJLxVub!D{^RT-J>+F1| z_wen{cS#jZ^`=)DO%!RQu?BkAP$$~df%de|zacVIkNYR0L-k$sOR=7{OV%Md6_vHF zHI-Czd65D#2m0U_kvaa08@lD?7+p|10#8WA9DzsS``dcoXjm zIv_7*Zc&T37H`te*93ZT2x8b;ev6gqSh~K>v@x|K$2{g~wJhrjW=7|_;}n1);H|Ef zn!42y=Qd0p9ae*)7Rx=lji{bD>=F1488e=zO!y?%vYV;vSmn)4Bdj`Jo~1#LEajG+ zYcs`qxai=jYKu-M`DOS{sSHsd*(&QmcK0kCdAX}dY}fp4D6LG)nq>9sp=pTbcK5t* zW7N)8DA{qNhU3>q)sXKZa$D>D*+kotHgK|r*Ht{Oa`v0h)S0f)r^f9AcXe&6pe^1z zY(>Ccw0J9M2LyIwjBdDVyZ;U|8=R8;vD;InUxR)|$81E`O)ma_iOY=B9?au5mT+74 K$>-$9ttY?KSE1kl diff --git a/Snippets/idtr-801c48e6-6fa3-4313-aa39-3c6f1957606a.json b/Snippets/idtr-801c48e6-6fa3-4313-aa39-3c6f1957606a.json new file mode 100644 index 000000000..cda582c0e --- /dev/null +++ b/Snippets/idtr-801c48e6-6fa3-4313-aa39-3c6f1957606a.json @@ -0,0 +1,6 @@ +{ + "id": "801c48e6-6fa3-4313-aa39-3c6f1957606a", + "prefix": "idtr", + "description": "IF EXISTS DROP: Trigger - [provided by @sqlity]", + "body": "IF OBJECT_ID('$CURSOR$') IS NOT NULL DROP TRIGGER ;\nGO\n" +} \ No newline at end of file diff --git a/Snippets/idtr.sqlpromptsnippet b/Snippets/idtr.sqlpromptsnippet deleted file mode 100644 index 606daa2b25acb47f2511e4e11afb4488283c8e64..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1128 zcmZ{j+b#o96o&t6iFepUf(xe`7mQM^V+83`A`y|ns3sKcXn1*iYi~oRoyjEap1n^0 zVa@kfq-}lZSx<5rDpg+tb@ig2wlu3XEo+s3N2I4a?(d2A)bY`GWqQyOS?lC%tEOp9 zDN@7drHaYy>Xj!YbMPB?bgRm7+NZV;o`i~j1OY|pZ}p+aA$=1N8R}vz#M?~IV3rc? zl9!PeX+@*=hB)sSs$xBQ3>kclVX<~HI@zJg!~xZP&pzYV^sMO!c20Y`;G>s@an$>z-ZU>QJRj z!J>n0rkIzbPL69g>Uf@CgYyTK2`c2U5FT+ulJC4M34^w37Xpu z2JZ%_U9M2R>rN-0Uk6na@1SjO@MjinBhBDs1HbF|T<09N;Y__&^Xc`bs#w#Mm{ySD$oVCD&@e1~j~V71^k3uw73Tjnk0Dw4`$CHf SOnUMkAFV3-7ILcN=FtznUZo%a diff --git a/Snippets/idu-f2efaf3b-c1ac-4b6c-b74d-afb0d5e3c20c.json b/Snippets/idu-f2efaf3b-c1ac-4b6c-b74d-afb0d5e3c20c.json new file mode 100644 index 000000000..1f3d704e1 --- /dev/null +++ b/Snippets/idu-f2efaf3b-c1ac-4b6c-b74d-afb0d5e3c20c.json @@ -0,0 +1,6 @@ +{ + "id": "f2efaf3b-c1ac-4b6c-b74d-afb0d5e3c20c", + "prefix": "idu", + "description": "IF EXISTS DROP: User - [provided by @sqlity]", + "body": "IF USER_ID('$CURSOR$') IS NOT NULL DROP USER ;" +} \ No newline at end of file diff --git a/Snippets/idu.sqlpromptsnippet b/Snippets/idu.sqlpromptsnippet deleted file mode 100644 index efcb093d16362cdf404a17aa4f4f115fc51938f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1094 zcmZ{jTT22#7>3{Lp#LyQU|p1T(?yvkY7|I?s}O|5W}69R<*MkPub!D{bJbmhb#}hf zd-(R}yR53_de@tbW{Nactf4+M(zyyc)}fC0H$+D2bN@_qq=Ac0HPMR>$T}gXs*1L? zrLyWSFH%6}P@nuFGULCvp<7;#(IvHG@Pt$>5qK27zpeK@uIL+r$f912`FMxv6PQIr zhvZF}TT=Sg;!XPbnn14(!34IJU%GNLwprg`T1@TOF`w|XT2^!oGoz;NIR#({cx$Mw zTixlDbC)X1!=R_p1DcJgoH^VP*o~gF;CVsb7o04!g?f%r-poyOHOI*_G-#2f+Nx_E zrda>d?yW19b~(wfz;#Y#2>WECtoqsAvvB0)t|PHs^EaWqHZg0G)vu4HA)4F0^Pa`1 zovl!^-$pIRZ-A;H-$dj#*85XH+p>0WvX0L+9ItWqThIkl6Yn2+Z)i_N?UL2yCSV`h zycM<2bh{}=H{5mHf0ubJPRZWbt?`|V&e(;Xn_2q*{#Lnes=tieSi)-6A)k{Uw{H9b DBs8Gd diff --git a/Snippets/idv-678ed497-bed1-4917-8ca7-381f66fb7c10.json b/Snippets/idv-678ed497-bed1-4917-8ca7-381f66fb7c10.json new file mode 100644 index 000000000..6c55ae43b --- /dev/null +++ b/Snippets/idv-678ed497-bed1-4917-8ca7-381f66fb7c10.json @@ -0,0 +1,6 @@ +{ + "id": "678ed497-bed1-4917-8ca7-381f66fb7c10", + "prefix": "idv", + "description": "IF EXISTS DROP: View - [provided by @sqlity]", + "body": "IF OBJECT_ID('$CURSOR$') IS NOT NULL DROP VIEW ;\nGO\n" +} \ No newline at end of file diff --git a/Snippets/idv.sqlpromptsnippet b/Snippets/idv.sqlpromptsnippet deleted file mode 100644 index efc5bb1f10d18641f169328dca9a2e8361f0f4bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1112 zcmZ{jSx>@16ot>TiT`0VCg_9Piw}w@f(wSIp|~W*n2J?N6crHh&#T|eSZQgSrtQq! z?VNM({CtITE%O>(qgtQXkwYGV-snzWe0RzJ4lB#;OE->FQPnKIs$=Cj8q~^Rcr^7{hQV-+2`250^2c>A^hW+vij#|&%;sVJB`FhXR=*CKhG=dl z&v$Kr+W88_6K>RW{2oy?].[] -AS -BEGIN +create procedure [].[] +as +begin --Assemble -- This section is for code that sets up the environment. It often -- contains calls to methods such as tSQLt.FakeTable and tSQLt.SpyProcedure -- along with INSERTs of relevant data. -- For more information, see http://tsqlt.org/user-guide/isolating-dependencies/ - + --Act -- Execute the code under test like a stored procedure, function or view -- and capture the results in variables or tables. - + --Assert -- Compare the expected and actual values, or call tSQLt.Fail in an IF statement. -- Typical Asserts: tSQLt.AssertEquals, tSQLt.AssertEqualsString, tSQLt.AssertEqualsTable -- For a complete list, see: http://tsqlt.org/user-guide/assertions/ - EXEC tSQLt.Fail 'TODO:Implement this test.' - -END; -GO + exec tSQLt.Fail 'TODO:Implement this test.' + +end; +go --------------------------------------------------------------------------------------------------------- --tac --tSQLt.ApplyConstraint [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.ApplyConstraint @TableName = '$CURSOR$', @ConstraintName = ''; +exec tSQLt.ApplyConstraint @TableName = '$CURSOR$', @ConstraintName = ''; --------------------------------------------------------------------------------------------------------- --tmt --tSQLt.AssertEmptyTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertEmptyTable @TableName = '$CURSOR$'; +exec tSQLt.AssertEmptyTable @TableName = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --te --tSQLt.AssertEquals [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertEquals @Expected = '$CURSOR$', @Actual; +exec tSQLt.AssertEquals @Expected = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --tes --tSQLt.AssertEqualsString [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertEqualsString @Expected = '$CURSOR$', @Actual; +exec tSQLt.AssertEqualsString @Expected = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --tet --tSQLt.AssertEqualsTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertEqualsTable '#Expected','#Actual'; +exec tSQLt.AssertEqualsTable '#Expected','#Actual'; --------------------------------------------------------------------------------------------------------- --tal --tSQLt.AssertLike [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertLike @ExpectedPattern = '$CURSOR$', @Actual; +exec tSQLt.AssertLike @ExpectedPattern = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --tne --tSQLt.AssertNotEquals [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertNotEquals @Expected = '$CURSOR$', @Actual; +exec tSQLt.AssertNotEquals @Expected = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --toe --tSQLt.AssertObjectExists [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.AssertObjectExists @ObjectName = '$CURSOR$'; +exec tSQLt.AssertObjectExists @ObjectName = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tco --tSQLt.CaptureOutput [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.CaptureOutput '$CURSOR$'; +exec tSQLt.CaptureOutput '$CURSOR$'; -SELECT * - INTO #Actual - FROM tSQLt.CaptureOutputLog; +select + * +into #Actual +from + tSQLt.CaptureOutputLog; --------------------------------------------------------------------------------------------------------- --txe --tSQLt.ExpectException [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.ExpectException @ExpectedMessage = '$CURSOR$', @ExpectedSeverity = NULL, @ExpectedState = NULL; +exec tSQLt.ExpectException @ExpectedMessage = '$CURSOR$', @ExpectedSeverity = null, @ExpectedState = null; --------------------------------------------------------------------------------------------------------- --txp --tSQLt.ExpectException:Pattern [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.ExpectException @ExpectedMessagePattern = '$CURSOR$', @ExpectedSeverity = NULL, @ExpectedState = NULL; +exec tSQLt.ExpectException @ExpectedMessagePattern = '$CURSOR$', @ExpectedSeverity = null, @ExpectedState = null; --------------------------------------------------------------------------------------------------------- --tf --tSQLt.Fail [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.Fail '$CURSOR$'; +exec tSQLt.Fail '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tft --tSQLt.FakeTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.FakeTable @TableName = '$CURSOR$', @Identity = 0, @ComputedColumns = 0, @Defaults = 0; +exec tSQLt.FakeTable @TableName = '$CURSOR$', @Identity = 0, @ComputedColumns = 0, @Defaults = 0; --------------------------------------------------------------------------------------------------------- --tnc --tSQLt.NewConnection [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.NewConnection @command='$CURSOR$'; +exec tSQLt.NewConnection @command='$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tnt --tSQLt.NewTestClass [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.NewTestClass '$CURSOR$'; -GO -CREATE PROCEDURE .[test ] -AS -BEGIN +exec tSQLt.NewTestClass '$CURSOR$'; +go +create procedure .[test ] +as +begin -END; -GO + end; +go --------------------------------------------------------------------------------------------------------- --tro --tSQLt.RemoveObject [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.RemoveObject @ObjectName = '$CURSOR$'; +exec tSQLt.RemoveObject @ObjectName = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --trf --tSQLt.ResultSetFilter [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.ResultSetFilter @ResultsetNo = 1, @Command = '$CURSOR$'; +exec tSQLt.ResultSetFilter @ResultsetNo = 1, @Command = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tsp --tSQLt.SpyProcedure [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.SpyProcedure @ProcedureName = '$CURSOR$', @CommandToExecute = NULL; +exec tSQLt.SpyProcedure @ProcedureName = '$CURSOR$', @CommandToExecute = null; --------------------------------------------------------------------------------------------------------- --tso --tSQLt.SuppressOutput [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -EXEC tSQLt.SuppressOutput @command = '$CURSOR$'; +exec tSQLt.SuppressOutput @command = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tea --tSQLt: create #Expected from #Actual [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -SELECT TOP(0) * -INTO #Expected -FROM #Actual; +select + top(0) + * +into #Expected +from + #Actual; --------------------------------------------------------------------------------------------------------- --tie --tSQLt: INSERT INTO #Expected [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -INSERT INTO #Expected -VALUES($CURSOR$); +insert into #Expected +values($CURSOR$); --------------------------------------------------------------------------------------------------------- --tca --tSQLt: SELECT INTO #Actual; [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -SELECT * -INTO #Actual -FROM $CURSOR$; +select + * +into #Actual +from + $CURSOR$; --------------------------------------------------------------------------------------------------------- diff --git a/Snippets/tab-79648b3c-3560-4c13-9057-9da7cd13ce0c.json b/Snippets/tab-79648b3c-3560-4c13-9057-9da7cd13ce0c.json new file mode 100644 index 000000000..42db5020d --- /dev/null +++ b/Snippets/tab-79648b3c-3560-4c13-9057-9da7cd13ce0c.json @@ -0,0 +1,6 @@ +{ + "id": "79648b3c-3560-4c13-9057-9da7cd13ce0c", + "prefix": "tab", + "description": "tSQLt: about [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "/*\n -----------------\n -- About tSQLt --\n -----------------\n\ntSQLt is an open source unit testing framework for SQL Server. \ntSQLt is coauthored by:\n- Dennis Lloyd Jr. ( @dennislloydjr | http://curiouslycorrect.com/ )\n- Sebastian Meine ( @sqlity | http://sqlity.net )\n\nYou can download tSQLt at http://tSQLt.org/downloads\nA more complete set of SQL Prompt snippets is available there too.\n\ntSQLt provides an array of procedures that help you to write robust test cases\nby isolating dependencies (e.g. tSQLt.FakeTable or tSQLt.SpyProcedure) and \nasserting correct behavior (e.g. tSQLt.AssertEqualsTable or tSQLt.ExpectException).\n\nTo create a test, you first need to create a schema using the tSQLt.NewTextClass\nprocedure. Any procedure that lives in such a schema and that has a name that \nbegins with the four letters \"test\" is considdered a test case. To execute a test\njust run tSQLt.Run passing in either the schema name or the fully qualified\ntest case name. To execute all test cases in the database run tSQLt.RunAll\n\nYou can find the tSQLt manual and examples at http://tsqlt.org/user-guide/\n\nTo check the version of tSQLt that is currently installed execute this query:\nSELECT * FROM tSQLt.Info();\nThe Version and the ClrVersion should always match.\n\nFor an easier way to manage and execute your tests check out Red Gate SQL Test.\n\nBelow is a test case template that also explains the three parts that every \ntest should contain.\n*/\nGO\n-- Comments here are associated with the test.\n-- For test case examples, see: http://tsqlt.org/user-guide/tsqlt-tutorial/\nCREATE PROCEDURE [].[]\nAS\nBEGIN\n --Assemble\n -- This section is for code that sets up the environment. It often\n -- contains calls to methods such as tSQLt.FakeTable and tSQLt.SpyProcedure\n -- along with INSERTs of relevant data.\n -- For more information, see http://tsqlt.org/user-guide/isolating-dependencies/\n \n --Act\n -- Execute the code under test like a stored procedure, function or view\n -- and capture the results in variables or tables.\n \n --Assert\n -- Compare the expected and actual values, or call tSQLt.Fail in an IF statement. \n -- Typical Asserts: tSQLt.AssertEquals, tSQLt.AssertEqualsString, tSQLt.AssertEqualsTable\n -- For a complete list, see: http://tsqlt.org/user-guide/assertions/\n EXEC tSQLt.Fail 'TODO:Implement this test.'\n \nEND;\nGO\n\n" +} \ No newline at end of file diff --git a/Snippets/tab.sqlpromptsnippet b/Snippets/tab.sqlpromptsnippet deleted file mode 100644 index ece259946170c0e6f4d46fc3c1778831da0c84c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6026 zcmbuDTW?!M6ouy*iT`luOD{@nc;TUh7S~BbP})Lb5C~Psjos9(V+Y%58j0TytZ$ab zGw0YYRZtXP&g|Kjwb$OW$N&7j7aoTX;UbJf72bzon1y*5g=v_CZ^NDNRcM7T^T<5nhK~NqsGu$Kg@J@k;ZlD?NzRw+m9%Y>slrq3 zoyniRc4QCih4r)FI=+|QzC6O~`kL2!vc6DcL#-|(`AT-%p?r$JNuT$ehBwiJg`y?C za_9Qm`u=@cn``eZM!wK1Sfb@L{1lG${!kY2Wg7KY;rC*#5}H-mkI^I3m#(3n{2Y;7 z=u&Vb|lKwB=Z}xx=)-TvPRQIS9`HgCU9j-ol9lqf6u`)Q-I&wcK zlho8b{eKtxPLdn1q~1!V3V-RpUS)I>dID8Hm-LOIrrKtT>MYhC-!GKQD%@ZBLN&V! zz#rrHOwXu(FtaD-2H4$fv|X;Z;!e7Ntq}EZ(W^>+*up^HuO&z1^w+AE%gsF`b+^<* z+S*swGLKPpr0qg0#EnH_zLX`p6i?`PcsEssb65LO@|I+69bK* zPCS33cUxOX$5a_4<|aQbqlNd{&3Tg9O7+4%khM>igtLQ~Q%hqfAv2WiOUd78$5r%U zs@H4jAxC&cG_N8Ph$r#g82|xe1uq@jG{%&>K0b1)PNKJ*%%ivqMhq3|0?Ij!(qlGpJB{~-O{m{V{B(REhQX*$vd2i8~3Y%^{wtDN|- z7W-7lRrJhp*1b%5EE!8aEjv*pblOrs{*le|s2#~`ePX|*kftBg;VMN%1%oX(R+vdqdBb=ky=|T5ir$sChZ}xom;y zx^zZ?ePp7edmHahWcM%}=|tum_a+eR$QFoPET_kE4H;_IyhMtr-FLdgRw|sDfD=q; z=9~G%4s+~EjLS@f3rt8%gp(CFI1!E{@2*B1lbWY^Q)iy*&t1$+b~R&_UNKN)^|`=O zxkqi95L0*0U9}|yH_wPowD5(P_?05_7tHCJCqfesJX6Dcx-auPy}6RV;MQMORLT(V ziR1YeLFE~H_daJO^ZWLv5ZSKJ-n%ign`UpeF>X71sIB-7&?4Myl|sUOgdDhpBs0q4iAj-M>?fXdHzy={KD3bXEpU#|7CCe Tx5m6)?yCPDX_@Wo{Py@Si__XN diff --git a/Snippets/tac-747cd3ce-14d7-473e-a42b-28418b597e89.json b/Snippets/tac-747cd3ce-14d7-473e-a42b-28418b597e89.json new file mode 100644 index 000000000..15b2feef5 --- /dev/null +++ b/Snippets/tac-747cd3ce-14d7-473e-a42b-28418b597e89.json @@ -0,0 +1,6 @@ +{ + "id": "747cd3ce-14d7-473e-a42b-28418b597e89", + "prefix": "tac", + "description": "tSQLt.ApplyConstraint [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.ApplyConstraint @TableName = '$CURSOR$', @ConstraintName = '';" +} \ No newline at end of file diff --git a/Snippets/tac.sqlpromptsnippet b/Snippets/tac.sqlpromptsnippet deleted file mode 100644 index 22f73ab922b2ab76d0120805339f27f0af672eab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1252 zcmb7@OHaZ;6ot>)#Q!i76E_OFaiRDih`KNu1rihEqGCl7tVpZTKd*jw#)bmz!Zgeb zbI*O9d*(0s_k*Hx*$iI@Wmk0Kf5DZ6~^fl-zoJ(c+4sYRfPEFA7Y#nH=-h|dfpc7J+fzX z7Gupo4#?Y3@z(0i;{~6to_z%wXzQ=&xolhZKOtL+@6>mmu^N{arK@XQu-Db{oQ(D5 znM%NC;3KdJC#Smt+QF~WiRUBI1A9sar@rUb&^@2gGTB@l6EOzeUq0K7pD^1x_hb*8Oq<0LpRpn z5LP4B*uRW0qZ-^cwT5QesHBA&TAVw&<<}u@DfQgCWub_v-)y+SE`XR_4J~FcC@SwRkhCUuncs^{XN!!y21J;uLrH+wTaK3 zcD1Ml)zu7ssakmUG~`S1%*J*HTA7d25wRoqBt-l%h%6$$#Yc=2a1$6A>uFoGx5@6Q zEXC^a?31^q{H^hw;Ki7h9s>hUwN_s~a^5x{e?Yd3*ioq5vznHM($a-a*{f>ckpP+O={ZK=^<;V`+WHLBk)Ms(e&lCp;=ijy zrglgj16W6mt+&PKMLf!UXPFpk`JB~fG8Sbr{qE2;K~tOR$Tp)3#R^Sck7G8hzAmaJ ztZ8@;u}8~jTh|gZ(_~5-Ohbe7p|1HgLH>W*_QwhuHxKr`&I3C;kI3rC=Cq;;cvrfl t&NJ2uH>=$5lh5LeSzp^sN+&R?{l5KaCFXncXE)oV=IQ=LpK`nP>IYB!x#a)= diff --git a/Snippets/tat-16d83281-6d7e-4327-81fc-75fefce996a3.json b/Snippets/tat-16d83281-6d7e-4327-81fc-75fefce996a3.json new file mode 100644 index 000000000..35a010829 --- /dev/null +++ b/Snippets/tat-16d83281-6d7e-4327-81fc-75fefce996a3.json @@ -0,0 +1,6 @@ +{ + "id": "16d83281-6d7e-4327-81fc-75fefce996a3", + "prefix": "tat", + "description": "tSQLt.ApplyTrigger [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.ApplyTrigger @TableName = '$CURSOR$', @TriggerName = '';" +} \ No newline at end of file diff --git a/Snippets/tat.sqlpromptsnippet b/Snippets/tat.sqlpromptsnippet deleted file mode 100644 index 2f1f7e8ace1dfa50a2bd843f15c23518ca1d1223..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1234 zcma)+UrPc(6vfYT(07Y+qkqWEnVw^wWONoWT;QD zm|vgAdT_eS_&Jz$YIxkS9#|8+oI0M>lwI4`vKlrK$1IFH_gl$U%NnLy;{1&N7H6zD zpV!fC$}`a+%#_(BdWA7VX}S8kXI5oUl80 zht=4t#O_3xQ2}lvZK0Vu^QobR8vCYh`PIq%KgFF8XX>(Ba>;JQ>bQAM+bWW$qZ|6W s;$7rqhjWX_s&+YQTSuto-lHr3eG3*@S)J3|Znjzfi?a+q>+LqTAFIf_+5i9m diff --git a/Snippets/tca-518a2895-ef22-4f49-a3ab-4a9807475509.json b/Snippets/tca-518a2895-ef22-4f49-a3ab-4a9807475509.json new file mode 100644 index 000000000..09ae05ccc --- /dev/null +++ b/Snippets/tca-518a2895-ef22-4f49-a3ab-4a9807475509.json @@ -0,0 +1,6 @@ +{ + "id": "518a2895-ef22-4f49-a3ab-4a9807475509", + "prefix": "tca", + "description": "tSQLt: SELECT INTO #Actual; [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "SELECT *\nINTO #Actual\nFROM $CURSOR$;\n" +} \ No newline at end of file diff --git a/Snippets/tca.sqlpromptsnippet b/Snippets/tca.sqlpromptsnippet deleted file mode 100644 index c5cd542544882df71d0c588ca63cec521010d1e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1198 zcmZ{jOHaZ;6ot>)#Q!j&D-%UGF0?|3_)2_4T35zJMMM%sq}Ax3SHC+W+CrO2Iy1em zbI(2V{S~RL4?XKiPVX9Ms!SujXsmrTw5?5Tu{$hd_4$8~b*!PczA4v(Ht^cPr>&Nj zwWLS~-fy57&ygmq0iM~f-I1-%$LWaJDR@#M{t*NeA-~0k94F*WL1d`QwqQ@Fp3~U? zYYzI9x=j`T8s1sH5EJXsBQSsKuNb*#Ta52gEhBd7JJ0zVmzE{gmCo3AsTk{!^C3(n z+)j1De#vQ79b$7Tr{Lb>&rKoH!L?J@bCc?hJ)@e_wdXnKl=$ja)n??Fj^7hu0KNP3u7?8B?fc zX!fQYbF}`3UL!-Y*eeM$YQSxz6*O~zN;;^a!?~=rb^k`|6lc>rQV%VjgJg|7*W6<6 hJ#KqG_7(+Lo#x*=FZZ{|_`kgvRh~-lskhq%egKh)vJn6P diff --git a/Snippets/tce-df75f607-20c5-474d-bb43-a7dea61b0dbb.json b/Snippets/tce-df75f607-20c5-474d-bb43-a7dea61b0dbb.json new file mode 100644 index 000000000..7c6b7a7cb --- /dev/null +++ b/Snippets/tce-df75f607-20c5-474d-bb43-a7dea61b0dbb.json @@ -0,0 +1,6 @@ +{ + "id": "df75f607-20c5-474d-bb43-a7dea61b0dbb", + "prefix": "tce", + "description": "tSQLt: create #Expected from #Actual [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "SELECT TOP(0) A.* INTO #Expected FROM #Actual A RIGHT JOIN #Actual X ON 1=0;\n" +} \ No newline at end of file diff --git a/Snippets/tce.sqlpromptsnippet b/Snippets/tce.sqlpromptsnippet deleted file mode 100644 index d9cb653c3e7696497384a6f78bf57096a4b6e61a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1310 zcmZ{kPfy!G5XIjaso!Ct7pTO)3x_rYS)o8HD3k;Vsp4RQNs%BxY!G~T;5W0eaAI2) zUOaE+?d+Skd4KC@M=!e5t%9DFX`);=y4P6STGFQ0w80uc#u^g80v&7Q=#vUvYn7}m za(2|!7cHoxp66xilX;^Do{Y?ViU-)*a)S1#ozPE8#b*bxi^y;Fk>dc~l#Z5n7Le%;e4RY&B_`!ykUO7%Ya82fMXjH{k`PVCr`P0p~PAO3rCfxo)$ Yu=2#S>ec7@i5pf{&CWdLwBt7459s&8n*aa+ diff --git a/Snippets/tco-e1d61823-f962-4817-b46b-1fa45d0f155e.json b/Snippets/tco-e1d61823-f962-4817-b46b-1fa45d0f155e.json new file mode 100644 index 000000000..32425ff6a --- /dev/null +++ b/Snippets/tco-e1d61823-f962-4817-b46b-1fa45d0f155e.json @@ -0,0 +1,6 @@ +{ + "id": "e1d61823-f962-4817-b46b-1fa45d0f155e", + "prefix": "tco", + "description": "tSQLt.CaptureOutput [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.CaptureOutput '$CURSOR$';\n\nSELECT * \n INTO #Actual\n FROM tSQLt.CaptureOutputLog;\n\n" +} \ No newline at end of file diff --git a/Snippets/tco.sqlpromptsnippet b/Snippets/tco.sqlpromptsnippet deleted file mode 100644 index fc51a664edff5c7651ef542b4b1f13cfa7bc9085..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1304 zcma)+-Acni5QWdR;5)2Z5CmJj@j|0g>MvA_wgo|Y5o@f1*4jkTmsh{pHJY|5NXTxw zGjrz5nc04QM%vfAp7bcEHzgV?)q|cj)UKAbsj4>E9hRZ`oZn&{YT&J}%5fi};_>4?}dd}1R07z7pp-{J$t3AizgjP;}~*gIs; zs4T&ndG?WNDxMnO952MQb?+INztvZaoVCryACN62cI+$9SWQbqY3o8w_A2_sXp(_H z#=GV7jQr|!UGQ{h>vZ6?h;_rB;_uY;x@LTJd^XEsJ#loy)N?<%Y&UH}U#pxS^V{M~ z7w2&u^=3RHZKF+%uT(E+W;_jRpdQ_-!J@pbSq198lAxj^vaBB%bqrx0ls2yA=w&?S`A#!2)cMmEO=T?0Wcu~dHAYjL?Z7sr3*`#scgQg_ zR^I?sW7fpqiqNBFw2idH%rxjvooT4^eW)wm2FU-Nxm8v0@9L5|TC5eVYRBJY>uwvg zrbq06xyGCK{8Z=UY;m$e=05q1`Mx#0?6Wd(56ySc9GY^VmJkbBEhH S-M>G3F=}!ig3o-r_5K?QkiBE>iV6yuz@8H|kerY+fT zxIL0tjy1wQa&KGJQ{!94OFk3*bOwgE{HmV2wq5@Lw-xxVJoCucw6rJ_UF(whh#ULZ zjeF!9U}Qd#)oleAP&R1bs7!avg`=mgs-a82RFOa}OuMkY$!1d~Rkg+Wh`srlD#7Ch zvW<)-tlA8#(ld%h>Ta>-nz?38S?%WEbJdcDfrxc=+3brO{qYW|_Q!Tjs(n=AyBgBD zOY&I2I_Yfnt&d*EqY1ms#G*F$T4(FVx|>YDdvwjv)T*A?7F3~Lq4EUz#wqiV)C z_cxJhw1>7GeWGXjbV-kH==pk#F18yI{Yqnf$36rxWo>7l+1q-8Wz4SST~~JC%-?Vi ztJU@tkC86)&3AS(WIfPV-;ao3XETOzX%pH05cb}xov~Y$cYD=qvvLX3Y_}@?2dcQV AG5`Po diff --git a/Snippets/te-6aff4b67-6976-4d9c-bc3c-d9357da6a676.json b/Snippets/te-6aff4b67-6976-4d9c-bc3c-d9357da6a676.json new file mode 100644 index 000000000..4fea578c5 --- /dev/null +++ b/Snippets/te-6aff4b67-6976-4d9c-bc3c-d9357da6a676.json @@ -0,0 +1,6 @@ +{ + "id": "6aff4b67-6976-4d9c-bc3c-d9357da6a676", + "prefix": "te", + "description": "tSQLt.AssertEquals [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.AssertEquals @Expected = '$CURSOR$', @Actual;" +} \ No newline at end of file diff --git a/Snippets/te.sqlpromptsnippet b/Snippets/te.sqlpromptsnippet deleted file mode 100644 index 5aab6f3fc1c2a50a0e6d06f7126a70efb238c706..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1208 zcma)*PfNo<5XIkF@H?zU@S?3=JZNeywdz3-Z3}{Uh_+TiYi**`FR%V)x3PbcfP`c> zJ2P))-n{+!j?~apuX>Twrv{oR(X-w(Qe748sj6L8hh?M(&ihzL8hY!8Qax%1uYG(P zI?}q<6shI?2I}DXtTE33&tztIpq2SJof12to|uSv1)++7Z}9=+9Nd_StmGdbRH6ad}HV`h*+_krUr_%GY=_jE=5!!CF-lkHlA; zs;zgj#8jA2$L)fjgH@*!&qAzwR*P}!c}7!qU7yQx*fbn-Fy7oOldZ-|m}r&rGyW~k z7;zrg(QC>x)&acK*d^5S!dmrML*04C%DT$;-}IaX1|5h+Gg;O|S6^Noi`rP7$fAZa z|0B4Y5*gEdrdOM8F?vxQWxlJG7;3rBqLqwAnT)>&c#WBdsXC~_CSJ@?c6%I(vHpf$ zBSTQ^K7<)n;5O0*nrWeuCTeK1Z|jD)1@iwCcRXX!>a+XNC$i4FrA<(Jx~98JzMGtE mbAC(~^9-6jL?3s)j@sXiU+zCYk-6P$S*OcW3qIv`o6s-vzPJMb diff --git a/Snippets/tes-24e2fa41-6d2e-4ab4-abf5-e61515af074f.json b/Snippets/tes-24e2fa41-6d2e-4ab4-abf5-e61515af074f.json new file mode 100644 index 000000000..3ff626d28 --- /dev/null +++ b/Snippets/tes-24e2fa41-6d2e-4ab4-abf5-e61515af074f.json @@ -0,0 +1,6 @@ +{ + "id": "24e2fa41-6d2e-4ab4-abf5-e61515af074f", + "prefix": "tes", + "description": "tSQLt.AssertEqualsString [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.AssertEqualsString @Expected = '$CURSOR$', @Actual;" +} \ No newline at end of file diff --git a/Snippets/tes.sqlpromptsnippet b/Snippets/tes.sqlpromptsnippet deleted file mode 100644 index b59260fac2a19d17f583554705e5a1b6c79a022b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1236 zcmb7EO;5s55S+7#|KUkUylByj2Q42BpdL(&0*Q(7P@z;3M5IrHe_oy4N2R6h!4UdN zcXxJncFNDUk2cnL#T*8oh_FI}8Q!o!6E&Q|!wFBr$O26> z!anxkqpNul2F#pc$xp=0WD_?;tI9FBWbKN4LRM@UI2I0H>K(>4aYHf^*7=x=582&v zvWQX3Yr?(_WSC)KZN!lD*|D(LhyL@e7;-XlYNsavvM+1*dp zQ)zySI<8q6a{AQ2vg>m6G9FdAyG#VN+IRj=$FfeM-*Ii)>Czw56HC3< diff --git a/Snippets/tet-79fc09fc-5525-4e31-bc4c-04908b82b72d.json b/Snippets/tet-79fc09fc-5525-4e31-bc4c-04908b82b72d.json new file mode 100644 index 000000000..5f0421fa4 --- /dev/null +++ b/Snippets/tet-79fc09fc-5525-4e31-bc4c-04908b82b72d.json @@ -0,0 +1,6 @@ +{ + "id": "79fc09fc-5525-4e31-bc4c-04908b82b72d", + "prefix": "tet", + "description": "tSQLt.AssertEqualsTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.AssertEqualsTable '#Expected','#Actual';\n" +} \ No newline at end of file diff --git a/Snippets/tet.sqlpromptsnippet b/Snippets/tet.sqlpromptsnippet deleted file mode 100644 index c37c36877bc7277be9ed18eaa3adc3c2c7659370..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1216 zcmb7DO;5r=5PfG8|HFz0F52qFgH}ibs0S|wOiT=i3bm3TBD)&=^Xi*fDlKgfrYT!? zzTUif^Ya~{i#1*`hruUOtY9(28y2`k3#SNh!qd>Qz=ZcxS{KOF`T>V$9MkKJK3#OM zk3B@_sb7jAJ!e?*N$F`fcEfBhh%Ew-!snNGpW}vk6Cx7SWt+E;SlzL+ zlvbx0B7`X33f?@Qj~U`c5jb`${S_mtwrYHzbu437+PUMea4A`axWg^a05LtRqIMYI zoplnTv_zKRN%0yy79tEeHs~uS;*n^y!M*b9Xd7u&sV1{AoQkk$HZ|oGj{JNB-e2>- z#0ft}^BVT;_$+ZwjzWG}BAfFJG*^Z(rxp@LeScLZV&%`XX&6~Ip|V0o_)@JDm9jgX zqM~yD4q03?GGX_*dIf8J_BtF*zPm^yYqRR2or-mpgue-SO*jwHxYvi}6zUnucgavY z(qE=($(Tj9!_TNiZX+B}Gd<2HrW#^?5AeXZ$ISoLUK@uSMg^;E&J=AN@jYZ_x$%l^ f<3cxnOl=5)@Ne_WomXeEwHKqx^YT8;cA3pDNo%?z diff --git a/Snippets/tf-96133107-7dc4-47b7-8507-59abed6c291a.json b/Snippets/tf-96133107-7dc4-47b7-8507-59abed6c291a.json new file mode 100644 index 000000000..62ba3ecb9 --- /dev/null +++ b/Snippets/tf-96133107-7dc4-47b7-8507-59abed6c291a.json @@ -0,0 +1,6 @@ +{ + "id": "96133107-7dc4-47b7-8507-59abed6c291a", + "prefix": "tf", + "description": "tSQLt.Fail [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.Fail '$CURSOR$';" +} \ No newline at end of file diff --git a/Snippets/tf.sqlpromptsnippet b/Snippets/tf.sqlpromptsnippet deleted file mode 100644 index a75fb25345235be65c9eb8ef4640ddae7c097b5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1134 zcmZ{jK~KU!5QX2_#Q(4o6HbC&JZOawKs}fk1rig(p<+c6MWof}pI5)x1)x{SQXc#@+=!&&Qe=+B#_Wjzq zLq(^K?>g24YYLXrz$=)s>w9d&H1!?bm`-kiY^$jdCRpSAg8x=$3OJAJ=q=-!=>#3> z>{7kM#8?^DSVON+Sr^;=w!B6`F$ZGN4Duf6>)X3w-3yx&Soh2_zo9NJozce>)t7zlKqMJ;=5xT}`YAz0JQ>IX?(DG|>IK=uJqiW1M@%|4ps-SJ8 zJv`IKB`w_0V&Byrzc$Fl4y$UP=s>ryzUIBJs!o~m(4*D=ztemd+q$me7F+VoYaepT HkCOk2o$&cNUt;)x#OY9Up5fOg~0*a8|;zN!j@<<$4JEZQdG=+C%wKb34ZX2Mh(+#mAa;*1sN z^E$dsc_!L~nI@-1FEC~(E!Rlbp0ld1iv71eYk@;Y#Y}d?uaLYx=4X=EQRcs+ z1C%?Vk1?nN&o}5EreCLr^)@rS_<|>v|GX4he8o{Y4JD^RNLODa(8{|-o^*4gm zh&A@_M3_+xZd+PHGaXdYMh$Jw2fF0fA@lzfw^vZ%36-9xoJKNw>ZMQjo17aM$)c^nh diff --git a/Snippets/tft-0aed70b3-4fc7-49a2-a286-73e07dd91829.json b/Snippets/tft-0aed70b3-4fc7-49a2-a286-73e07dd91829.json new file mode 100644 index 000000000..d39b4621a --- /dev/null +++ b/Snippets/tft-0aed70b3-4fc7-49a2-a286-73e07dd91829.json @@ -0,0 +1,6 @@ +{ + "id": "0aed70b3-4fc7-49a2-a286-73e07dd91829", + "prefix": "tft", + "description": "tSQLt.FakeTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.FakeTable @TableName = '$CURSOR$', @Identity = 0, @ComputedColumns = 0, @Defaults = 0;" +} \ No newline at end of file diff --git a/Snippets/tft.sqlpromptsnippet b/Snippets/tft.sqlpromptsnippet deleted file mode 100644 index 32f3117ad4016741d7270295a43e316016bec432..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1288 zcmaizPfy!W5X9$<#CLcgBra_dE*xk|hypE0s1;3+kWdaTm=u+`X>1UDdD`FZON5=+ zLQ(wZ?duM~< zM^rDEEG2547SwI4d}{qJ`C`sczr2HjX>Go8=6Y;B|CnkyxpSYq;A&bL%TO0O=iXw* zM8Cm}xc~J2g04%5fTlsmu7M#E7*kFzUC)B2kykNx+eKhDQ!OlN*xfXV`)qOkm3PZC zJ%aNF<}CQlbbuypo^t)A7wgZsCK|h1P4lcz-gmvCdI83|jZ_^m(u;ee?2OfIlpVCh zAL<0p&X^;k>!`48ww}GNk0$JDC&t?BvhGU7x=NR&_L(Kgz4wS{K}xTKF8`aGZLivIxS_q=vga^5%Cr?3b3gLbt8!=-*O*>|ox zoP6N?NN4_?Wj;Z{-XgxUh+5ZEHez2)3ew&mc$@l$s#sIxj;fFDHdDeXck~IzjeWAV Z=ih>>D!RVox46ZY+EslJG0kz?`F}ab!;t_0 diff --git a/Snippets/tie-2cdd7cf3-a745-400c-9fc2-8038b7dfe13b.json b/Snippets/tie-2cdd7cf3-a745-400c-9fc2-8038b7dfe13b.json new file mode 100644 index 000000000..6981b80a9 --- /dev/null +++ b/Snippets/tie-2cdd7cf3-a745-400c-9fc2-8038b7dfe13b.json @@ -0,0 +1,6 @@ +{ + "id": "2cdd7cf3-a745-400c-9fc2-8038b7dfe13b", + "prefix": "tie", + "description": "tSQLt: INSERT INTO #Expected [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "INSERT INTO #Expected\nVALUES($CURSOR$);" +} \ No newline at end of file diff --git a/Snippets/tie.sqlpromptsnippet b/Snippets/tie.sqlpromptsnippet deleted file mode 100644 index e559dba5c1e1f51bf88a38416f23ad1615726bba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1200 zcma)*%P#{_7{$+8;(xdv3l@}(1=XgZ9*Gd0vJs0>qa;*yhVakh_ubpkX*-k1By%6% z`nX{w<` zEvT*o@0TdT^GQR#1kZGAcVw&baXKP)L_aYRlMX@`A-~0k94F+B>BzdCwgr2a>KT(I zSTptsb!#f#TEBU|5EJRqcaSly%~y<^x6Q{NQY9sJ=DYl@fCl}9>b*Y)+SuCe6c$MAIH>b4qM zf$2@|k2zbMA?18t2Lc)2kWOoS#@rhyW@y23^>yoUteSKlla@y^;OfX&#?`b|y87}c z6g4x;Q&C&Fe`Aba%=EdAjq~#CWqnln&URv1tMyl(saRIY@autV45p^`pp+CA$`Q(6 zl|w}~UmsLs{)vAlfum)xt!oL*9H5dGYG|?lzuJtuYhun&RGS&rv`VHcbQ+=04ySeP e!T+tVQ~P`A)AP+EKCzoEpJbYq;8Sfk27Uo!`LsCz diff --git a/Snippets/tmt-4ee3d830-ca84-48bb-8675-f754b78c6d7f.json b/Snippets/tmt-4ee3d830-ca84-48bb-8675-f754b78c6d7f.json new file mode 100644 index 000000000..52a3b8442 --- /dev/null +++ b/Snippets/tmt-4ee3d830-ca84-48bb-8675-f754b78c6d7f.json @@ -0,0 +1,6 @@ +{ + "id": "4ee3d830-ca84-48bb-8675-f754b78c6d7f", + "prefix": "tmt", + "description": "tSQLt.AssertEmptyTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.AssertEmptyTable @TableName = '$CURSOR$';" +} \ No newline at end of file diff --git a/Snippets/tmt.sqlpromptsnippet b/Snippets/tmt.sqlpromptsnippet deleted file mode 100644 index 7cada3afbcf028e32b20202897db051605afe617..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1212 zcmb7@Pfx-?5XIlw#P6^Y6HkI(JShGlhe%8 zGxO%no7bQ3ruOxzfnMbFp;TjKde*Ck+Eq=Ps%wL%BQn%I=MO}O>WApNydJeq))qPY z+S9U@)KojAhL+~Rv$4=z)fIetY>2}-lMx` zvXrO?)6=)1;;He?@nTI^Pl17FTAQy}xfollKcrhm?Kn*Cxto@T($$4ddDhh;BMYp( zI`A5C`US5vR>=^~8Fir}eVUICf$hx=BZSnnH2AbvMZc&F;P%mofKrGwOtUr2aU`{FeWPUeA zKjry*X!uEG!t}X!ZO`TCWjv~K=b0F4wdb019m_hIe)s5_ps6`Lx+7x?ZfNn|(KWv|$p3TRLBWS-^cv91(amX1tKePfk~z=0 huX3`3FK$Es#@|;zJNM!yrg4kq6V7fc=2XXRGrwArxnuwU diff --git a/Snippets/tnc-f148752f-b077-45d6-8d34-b4cf121196d0.json b/Snippets/tnc-f148752f-b077-45d6-8d34-b4cf121196d0.json new file mode 100644 index 000000000..cffd0ae43 --- /dev/null +++ b/Snippets/tnc-f148752f-b077-45d6-8d34-b4cf121196d0.json @@ -0,0 +1,6 @@ +{ + "id": "f148752f-b077-45d6-8d34-b4cf121196d0", + "prefix": "tnc", + "description": "tSQLt.NewConnection [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.NewConnection @command='$CURSOR$';" +} \ No newline at end of file diff --git a/Snippets/tnc.sqlpromptsnippet b/Snippets/tnc.sqlpromptsnippet deleted file mode 100644 index 4568b1691206f1fdedabddb2e17676ae2d1610ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1192 zcma)*%}>HW5XIlw#Q$M6CY}Vnc+dh8{5lwo0*Q(7P_ZJ3R;2aopI3jgOJjkOn1(W)bY4PU63P<`4W)X)b5D34C8c+?*u+E9)Ao1ixA)ZLyS}6#xOG0v$kOGkv*rf z1Z(d3N2;rQYkZ4%!KbT7&mgB-tFP?2Xj}9@BwL2>#8;lPnwA!&t4p1+*K`i%!>g2H zOF$Pmr<)Sep{>)Q*CN&(dj{I6?{&>N^?Ww-ww^e;Vd}YQF569;(AOIGC;T@*)5ZC? zj(T&xvG&lW&MDI?ni)@vHPkKLs>7nXu0;jfUbmp4!?UV0vy;)&m!FaHgv@uPJV^z< zsUv20OdTn#gVM&eI(ik4W!QNp7IpcwMROUeGMRn@bdAx}W;?LW=t8wZ#T#QdfQLz~(lLSI)@cEP&A h%|4TG>oeBwj2Ne diff --git a/Snippets/tne-2d99357a-cb56-43dd-a351-442f1aeb4c46.json b/Snippets/tne-2d99357a-cb56-43dd-a351-442f1aeb4c46.json new file mode 100644 index 000000000..b40f8a493 --- /dev/null +++ b/Snippets/tne-2d99357a-cb56-43dd-a351-442f1aeb4c46.json @@ -0,0 +1,6 @@ +{ + "id": "2d99357a-cb56-43dd-a351-442f1aeb4c46", + "prefix": "tne", + "description": "tSQLt.AssertNotEquals [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.AssertNotEquals @Expected = '$CURSOR$', @Actual;" +} \ No newline at end of file diff --git a/Snippets/tne.sqlpromptsnippet b/Snippets/tne.sqlpromptsnippet deleted file mode 100644 index 110e2a74c09fddf0a7c3d5dddf52f81268f8a342..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1224 zcmb7^%}xSA5QOV&;yaAS#EXJnJSd<9{|-i@U}9oCthyozqOzmWmsh`@VReDsgCQ`> zba!=ib;0*nL%aIWlZJA7SE{ix4fL#$np)PTYTDp*L`J&f{+{Sa{SbYV*Mru{+9GFH zEiGz64Ru0ZsxFxWz3@uO%qDRMT2+qIA+=-pBvkw{h%6$$)klnDa1$6A>*-jG_vr4K zEG6pUlG3-X;;r$`@nTI^kAZ<_TAQy}IUk#^-=|AP?Kn*C`7|vJrK@wDaMsi&BMYp( zPKkRR=#_2>Tr>Dw7qT7tI_(EN65VoIrPF25*7MX09j%k?#jz1n&`tW;Y5K(7*0?|7 zyVaRCF5o(5_Pk!SjXrgrGWZNRYXPgTo1k3PZ1XC#gLY9#2V&WFrrpugXYfhUC9|6; zx+%|Zq1^|S3Df7!wJn#Um+`2|on>OE)sAb-bS&#+`rV;x!amI3(Hpk$a)t8Wk;6AO zUq5)H4~qRV;*OTlwxK0F)4?Te+|cIvKv%pwApggAdlM~A#u}6sFVgIB*Yz@(O0c$TP_$75L7)^2pn?G?t-`bimru zPcTp9VaSMDcT`dE1f5lI0cC^wuEa$PWaaAL`k|A{@&OTGBAUSl5^Nxj5FdPe^q>7JE{i zqY}TXjLDr+$Aqkt&eq?0_PRWpu#1@(YxAsi79!R~GW{;S&okFOWosR;SE#%}fr+vD z#;7{to%@|gJz7KCj#inO9#hg~8oKN=o$~9!{IQAK&^qW7{icdT-s{@Xj^E<}-`3wA zrRufkh6@K=4EFspW8Iefr&A%E_}A`gBa)sGjCt^%h>l9Vw~e;)wE%@{}{Wm WhArn{xv%f`s@Ht)6QaggAZw@*?g^Xo0%J0Y!U$!mTUD=#Z zcBj(#mU*{e9}!hM&vn-2>}5KtVmFm2YxUlF8x_kcsecpt8qibSa;H`&UhYu(H3_#z z`zM4z4freo#}8(d~So!_a1Kf>yY{X+jpAV%qv!$v!bx3U>9|=j&Q?n j`@GkAa?I@*n~LV&_n+^+IFB{1SlVZPW-g{0*ZKScW&FE& diff --git a/Snippets/tpc-c2a18766-36e2-4628-b9a2-16887c69d164.json b/Snippets/tpc-c2a18766-36e2-4628-b9a2-16887c69d164.json new file mode 100644 index 000000000..b07d14cf2 --- /dev/null +++ b/Snippets/tpc-c2a18766-36e2-4628-b9a2-16887c69d164.json @@ -0,0 +1,6 @@ +{ + "id": "c2a18766-36e2-4628-b9a2-16887c69d164", + "prefix": "tpc", + "description": "tSQLt: Test Pattern - Current Event [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "DECLARE @actual DATETIME2;\nDECLARE @after DATETIME2;\nDECLARE @before DATETIME2;\n\nSET @before = SYSUTCDATETIME(); \n\nEXEC $CURSOR$\n\nSET @after = SYSUTCDATETIME(); \n\nSELECT @actual = \nFROM \n\nIF(@actual < @before OR @actual > @after OR @actual IS NULL)\nBEGIN\n DECLARE @msg NVARCHAR(MAX) = \n 'Expected:'+\n CONVERT(NVARCHAR(MAX),@before,121)+\n ' <= '+\n ISNULL(CONVERT(NVARCHAR(MAX),@actual,121),'!NULL!')+\n ' <= '+\n CONVERT(NVARCHAR(MAX),@after,121);\n EXEC tSQLt.Fail @msg;\nEND;\n\n" +} \ No newline at end of file diff --git a/Snippets/tpc.sqlpromptsnippet b/Snippets/tpc.sqlpromptsnippet deleted file mode 100644 index b0ed7e0f1eee237b1e03f15662413cd6321cc9b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2188 zcmb7_-A@xi6vfZ8iT}euNN6J;%7YJDK5ARA2^OU-(GVV%QYwj5Y*&N-y!yK{9d_H@ zCN`Vhot?QK=bn3J_V1sX4)v&eeUsBK4K>kJclxfe_O-58+R;nij+LyBv4Y@Ckqoq#97BSR2Sg!twkV!S7A z0wO~_zZTYeWKXGV$Z86T0eN?opEbNOUhwJat4EMxZT00ni)%&yCfTO=PJHDlPvg>} zboEK6yx)+q=dDskAAO~%uVKvhHg|)}6E5T2Y+AlEVSJg36s(&*LZWNlQ+%BIo_F(% zc|y+|-7@w<{t4(;3KNq6i^<$497CtMI;t=xf*K=8Ot&m ze*<_;;MBAqbTg$3q_=Y95>>*@=4 zpY>Qm8p`e3FyPdIi&L(u$Mg=|Cv?5zzYJNi=lATS zk@vjt3TmKxQ&NRm>abj8E!G%o+a#{-LsPghd&60>sTWUK%&q|&9bI5~PERX-Y;lY6 zw_qpF#1{XbJ?`p4#7&~sJeI{=R(q_xvSQ}^Udb|VQP0{_%r(CLAI)l&XX?zdhy5AZ z&a|HWb9PWw!kJ?G`-s1*^)Ps~K;4{;O@milc53Xxi~a5G-)ZwPdhz_s*7IKTXKb)p IzHaB~KLK+vt^fc4 diff --git a/Snippets/trf-e83dcd46-f555-4a3c-9139-2e2199fe2f33.json b/Snippets/trf-e83dcd46-f555-4a3c-9139-2e2199fe2f33.json new file mode 100644 index 000000000..a2e695b82 --- /dev/null +++ b/Snippets/trf-e83dcd46-f555-4a3c-9139-2e2199fe2f33.json @@ -0,0 +1,6 @@ +{ + "id": "e83dcd46-f555-4a3c-9139-2e2199fe2f33", + "prefix": "trf", + "description": "tSQLt.ResultSetFilter [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.ResultSetFilter @ResultsetNo = 1, @Command = '$CURSOR$';" +} \ No newline at end of file diff --git a/Snippets/trf.sqlpromptsnippet b/Snippets/trf.sqlpromptsnippet deleted file mode 100644 index 278549e0e320b6e9bc7b73bcab11a90a536dcc3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1240 zcmb7D%SyvQ6g_Lfe;A9|+l;x{8Ys5IM(^Pef$0u^UFK!WazbyJ9^dJ+>9NDqMW=cQLLRH)KUpb>8OeLuR+^ zETYvCGiBZevZqpS8qfIzc-0ClyOsX3o<&>HzsGC|eOKDK6*P zr^3yEIQf%K44(Adp$+*p=qVo|p1CJP8H|)$%deqElT0!f!!CtEv&kpBM0K$}X{51HL;6v;2G}a7bWv;5XA`2bm&M|2iv1~edbqw*XI?1YJcQRQu zrT8ZL)bEmg#H`w}EmJO!URFmHcDE9VTCF&LCu3PA;cr4-L(W6=?W#>Ug>r_{dt|5^ z>2F3>L#~nD3^$`1x%F{C&2*`f4%N`%cOQ>@yNvuF-L-Sd6rEYzQUQkf3~%`n*S6m7 yh2GGZchA}CIOO?={sHc|9-@v5s%EU!HPlD$X`YqhoVIqcrTyn;=`huHncE-6w7t3j diff --git a/Snippets/tro-7f9ed1aa-cd8f-45ca-9897-d44ee1a7f6ef.json b/Snippets/tro-7f9ed1aa-cd8f-45ca-9897-d44ee1a7f6ef.json new file mode 100644 index 000000000..c3702c935 --- /dev/null +++ b/Snippets/tro-7f9ed1aa-cd8f-45ca-9897-d44ee1a7f6ef.json @@ -0,0 +1,6 @@ +{ + "id": "7f9ed1aa-cd8f-45ca-9897-d44ee1a7f6ef", + "prefix": "tro", + "description": "tSQLt.RemoveObject [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.RemoveObject @ObjectName = '$CURSOR$';" +} \ No newline at end of file diff --git a/Snippets/tro.sqlpromptsnippet b/Snippets/tro.sqlpromptsnippet deleted file mode 100644 index 4e35bfde405bf939487d8bd1ba9934fd8e7a6a03..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1198 zcma)*Pfx;75X9$f;&*r&6HkI(JSc(${BtlG1rrm)p<+dhAku2|%d5YA5443gF%7hR zJ3G5OJN^Eusi6;z^em@$#hNP7P%j$mKls zYgH?%spWC8Iv|IdaK#{#S=_-^hH*M3cS=7I8GjvwE&{*h2aZ#CBRaCK^RW=`Qaxp| zm}m;-g}PN`Pp#iMU&!g`(RYwCt<9IsT#ha0x2cwpJN1*N{F|1>($S^PxL0%qX2iMa zeW5!&aqkmxy3ODm$~v{Z5)r5f-k6hXud1QDyeDLYjW~8;+PPUJyPGm$s};^qc(*)L z#d%)Gv?+H2;Dej#k&SR%v)YB)gy$J~XM5L4bi(;8xC)-@8m;D}zQ^l77o zeeA(Q*Zcwu={d)WUqH`zV;7=T`3SBU8?hdr5!(t}6%JqH9mWlDeO9DZ=WWhDV)lfc z1+;4ZCG$3sz14bCJQp*>t5uM&TkS6!S+o`7d(0LyHnPqWuF9pN3~`5B?hT&S#!6(q zF$R`tWvk#Z<11uW&@(oCJaLa1BN!XA2~Q)#&^$U7;XIT-*<{mQ*>RI?@cx?rHBOlk z!xeU%@LS=G>@<0b@lMvXQpK8KV!Ty#R^*^#oj4wah-I_MYh#2jQ%P1MyK~8EDfMrm zPxY?YN64xj*E-{J^s+jte0M8R)M~wXI~mI|DSuP)>XTDdx2rbh6v`P&Uy)EX+TV<< z`dkBh7j8y1a_ixMn(0y{9jc+ja~}`bhb7TH_YYVT4ZZbUxgNES*A_l| zYHLvoYN_k}V)gNSR>~LSnf=)vXmvhLN5qb)Cn91}L8v0&TYSJc0XL!|t9sfN>;tmr zbQWW^{3&^xD&JbY1zw2h>&aJ;)2;Paj-0p6#~+X_BX;aN&smL2L+R^6J@y8tR9`yB z=M~SG4&FJ(RB}`Db1>_4;F*YY$DVngE6-|*zM;OSKI%O-`BKV9csCtf6i_XLVi8_uuiX1r8mERdbov#Q-i$A!U8c&ZMlP z!oRIUl$+8=LTupK=39+kRY#rgY$b+TueH`p#;Q!l-#xrWaB9j9)n-hgnxWzaITU04 z4PiB6js2SlGg^k*mX^>=7nO8SLx=OBuK9IA{-5IZD|C2Dt`WH$*_>9j0^XG_>GOKkDkD~ diff --git a/Snippets/txe-e00c1ace-c5a1-4a51-acf3-b800df50bc8b.json b/Snippets/txe-e00c1ace-c5a1-4a51-acf3-b800df50bc8b.json new file mode 100644 index 000000000..6d3d273f0 --- /dev/null +++ b/Snippets/txe-e00c1ace-c5a1-4a51-acf3-b800df50bc8b.json @@ -0,0 +1,6 @@ +{ + "id": "e00c1ace-c5a1-4a51-acf3-b800df50bc8b", + "prefix": "txe", + "description": "tSQLt.ExpectException [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.ExpectException @ExpectedMessage = '$CURSOR$', @ExpectedSeverity = NULL, @ExpectedState = NULL;" +} \ No newline at end of file diff --git a/Snippets/txe.sqlpromptsnippet b/Snippets/txe.sqlpromptsnippet deleted file mode 100644 index 5ce647c39fe1f9d92362316b3ef54d23e9de58de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1318 zcmb7^Uyss26vfZ8iQi!)B>SSEFFvdY5Kob(@s~~>$N(1p`MO&_DKs-wd`Ax5 zSbtksO?al^%ZM}T!0kX!(98stj8Vgw^Gsj(O^EzIx_gsz8I_sxWqlx5#)?@Td7aMG zCGtw2>G%`RE;moPuX~&FqV7y3SVRwPkGT8;jB^_yLgmbM4ew7c6k z^JeDF?9X>wU480B&vN=uqNP&J^s2c|)zG1uI$(7mbH)6B0G(^<(RXEf)IL^6*mTv= zu6EQ`-`gb`VL8)+C&4mZ;SRPs8>cgTm*f-SvB@B05%|qNa9qF}k&$Ix!~#AhdPZdl zXhxND;JJ~ zf!jIeyx<({o$hiT4vn1#UXw`otSQz`H(uY2-PlJpZ|jYtE2g4b#kAEl3jJ;J|D3b= znLf_*I_l1N7CJ_w7Q0k$XlMBv*Hja)UR`}{WTx*=}cIto2jZ-ilZi$@GiSH9}LH@zC#-E>tVDzDthTvHGT{ z8u3m1?Fc<;plw@w%uJst=`jsG_CwwB_F?|t?49^qJfYvl+WNcA#cIm>Zt%QUu?NAX I9yh&z0YA>OqW}N^ diff --git a/Snippets/txp-37aefeab-e603-4701-bd2c-d294564b25bb.json b/Snippets/txp-37aefeab-e603-4701-bd2c-d294564b25bb.json new file mode 100644 index 000000000..042fa4e94 --- /dev/null +++ b/Snippets/txp-37aefeab-e603-4701-bd2c-d294564b25bb.json @@ -0,0 +1,6 @@ +{ + "id": "37aefeab-e603-4701-bd2c-d294564b25bb", + "prefix": "txp", + "description": "tSQLt.ExpectException:Pattern [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org]", + "body": "EXEC tSQLt.ExpectException @ExpectedMessagePattern = '$CURSOR$', @ExpectedSeverity = NULL, @ExpectedState = NULL;" +} \ No newline at end of file diff --git a/Snippets/txp.sqlpromptsnippet b/Snippets/txp.sqlpromptsnippet deleted file mode 100644 index 8f44bfd1a3ad148e0221f50e30841dc7115c0d13..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1348 zcma)+-A@xi6vfZ83ID@DNPNLoUwDA>(G=7N6tE>RF+40~tt47&cOdf5tG|1v3%lLj z#7x*3=AQd??wS7mGtiNK>xaH8=s~%bDs-oxn(IJYdZV6Rvj;45O}W3tI@ipt_lo+e zSD<#m9O+OSdZB?vj>|O$d8Y*{2U)D_foNTrpttxgsVBqZxq?(hif{fY#(UysRAg1x zZOJ|%d!(}*YoyBsdHbr~TD@hw4l4S2iqC>`!tUw9yN}-2ocg|0yaRj(oj4-X4SNAD=*qc{oF-m@MYA~tCS;6; zResxzuQcl(_wV@M{EVyMaRVGg)pDFk{!49>=SrXG|D5kOH#^)nW0?+<3Qc*BV9fs`zGtj1pGa Date: Fri, 2 Jan 2026 11:29:25 -0500 Subject: [PATCH 2/3] Update formatting --- Snippets/snippets.sql | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Snippets/snippets.sql b/Snippets/snippets.sql index 0a0d3c3c5..f07d83cbc 100644 --- a/Snippets/snippets.sql +++ b/Snippets/snippets.sql @@ -153,12 +153,10 @@ exec tSQLt.SuppressOutput @command = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tea --tSQLt: create #Expected from #Actual [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -select - top(0) - * -into #Expected -from - #Actual; +select top (0) + * + into #Expected + from #Actual; --------------------------------------------------------------------------------------------------------- --tie --tSQLt: INSERT INTO #Expected [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] @@ -174,6 +172,3 @@ from $CURSOR$; --------------------------------------------------------------------------------------------------------- - - - \ No newline at end of file From b8214ebfa3272a4c3b722a511a10126cf0578901 Mon Sep 17 00:00:00 2001 From: "Kevin R. Raney" Date: Fri, 2 Jan 2026 11:34:44 -0500 Subject: [PATCH 3/3] revert snippets.sql --- Snippets/snippets.sql | 100 +++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 51 deletions(-) diff --git a/Snippets/snippets.sql b/Snippets/snippets.sql index f07d83cbc..60c4d20f3 100644 --- a/Snippets/snippets.sql +++ b/Snippets/snippets.sql @@ -34,141 +34,139 @@ For an easier way to manage and execute your tests check out Red Gate SQL Test. Below is a test case template that also explains the three parts that every test should contain. */ -go +GO -- Comments here are associated with the test. -- For test case examples, see: http://tsqlt.org/user-guide/tsqlt-tutorial/ -create procedure [].[] -as -begin +CREATE PROCEDURE [].[] +AS +BEGIN --Assemble -- This section is for code that sets up the environment. It often -- contains calls to methods such as tSQLt.FakeTable and tSQLt.SpyProcedure -- along with INSERTs of relevant data. -- For more information, see http://tsqlt.org/user-guide/isolating-dependencies/ - + --Act -- Execute the code under test like a stored procedure, function or view -- and capture the results in variables or tables. - + --Assert -- Compare the expected and actual values, or call tSQLt.Fail in an IF statement. -- Typical Asserts: tSQLt.AssertEquals, tSQLt.AssertEqualsString, tSQLt.AssertEqualsTable -- For a complete list, see: http://tsqlt.org/user-guide/assertions/ - exec tSQLt.Fail 'TODO:Implement this test.' - -end; -go + EXEC tSQLt.Fail 'TODO:Implement this test.' + +END; +GO --------------------------------------------------------------------------------------------------------- --tac --tSQLt.ApplyConstraint [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.ApplyConstraint @TableName = '$CURSOR$', @ConstraintName = ''; +EXEC tSQLt.ApplyConstraint @TableName = '$CURSOR$', @ConstraintName = ''; --------------------------------------------------------------------------------------------------------- --tmt --tSQLt.AssertEmptyTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertEmptyTable @TableName = '$CURSOR$'; +EXEC tSQLt.AssertEmptyTable @TableName = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --te --tSQLt.AssertEquals [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertEquals @Expected = '$CURSOR$', @Actual; +EXEC tSQLt.AssertEquals @Expected = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --tes --tSQLt.AssertEqualsString [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertEqualsString @Expected = '$CURSOR$', @Actual; +EXEC tSQLt.AssertEqualsString @Expected = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --tet --tSQLt.AssertEqualsTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertEqualsTable '#Expected','#Actual'; +EXEC tSQLt.AssertEqualsTable '#Expected','#Actual'; --------------------------------------------------------------------------------------------------------- --tal --tSQLt.AssertLike [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertLike @ExpectedPattern = '$CURSOR$', @Actual; +EXEC tSQLt.AssertLike @ExpectedPattern = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --tne --tSQLt.AssertNotEquals [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertNotEquals @Expected = '$CURSOR$', @Actual; +EXEC tSQLt.AssertNotEquals @Expected = '$CURSOR$', @Actual; --------------------------------------------------------------------------------------------------------- --toe --tSQLt.AssertObjectExists [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.AssertObjectExists @ObjectName = '$CURSOR$'; +EXEC tSQLt.AssertObjectExists @ObjectName = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tco --tSQLt.CaptureOutput [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.CaptureOutput '$CURSOR$'; +EXEC tSQLt.CaptureOutput '$CURSOR$'; -select - * -into #Actual -from - tSQLt.CaptureOutputLog; +SELECT * + INTO #Actual + FROM tSQLt.CaptureOutputLog; --------------------------------------------------------------------------------------------------------- --txe --tSQLt.ExpectException [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.ExpectException @ExpectedMessage = '$CURSOR$', @ExpectedSeverity = null, @ExpectedState = null; +EXEC tSQLt.ExpectException @ExpectedMessage = '$CURSOR$', @ExpectedSeverity = NULL, @ExpectedState = NULL; --------------------------------------------------------------------------------------------------------- --txp --tSQLt.ExpectException:Pattern [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.ExpectException @ExpectedMessagePattern = '$CURSOR$', @ExpectedSeverity = null, @ExpectedState = null; +EXEC tSQLt.ExpectException @ExpectedMessagePattern = '$CURSOR$', @ExpectedSeverity = NULL, @ExpectedState = NULL; --------------------------------------------------------------------------------------------------------- --tf --tSQLt.Fail [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.Fail '$CURSOR$'; +EXEC tSQLt.Fail '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tft --tSQLt.FakeTable [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.FakeTable @TableName = '$CURSOR$', @Identity = 0, @ComputedColumns = 0, @Defaults = 0; +EXEC tSQLt.FakeTable @TableName = '$CURSOR$', @Identity = 0, @ComputedColumns = 0, @Defaults = 0; --------------------------------------------------------------------------------------------------------- --tnc --tSQLt.NewConnection [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.NewConnection @command='$CURSOR$'; +EXEC tSQLt.NewConnection @command='$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tnt --tSQLt.NewTestClass [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.NewTestClass '$CURSOR$'; -go -create procedure .[test ] -as -begin +EXEC tSQLt.NewTestClass '$CURSOR$'; +GO +CREATE PROCEDURE .[test ] +AS +BEGIN - end; -go +END; +GO --------------------------------------------------------------------------------------------------------- --tro --tSQLt.RemoveObject [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.RemoveObject @ObjectName = '$CURSOR$'; +EXEC tSQLt.RemoveObject @ObjectName = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --trf --tSQLt.ResultSetFilter [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.ResultSetFilter @ResultsetNo = 1, @Command = '$CURSOR$'; +EXEC tSQLt.ResultSetFilter @ResultsetNo = 1, @Command = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tsp --tSQLt.SpyProcedure [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.SpyProcedure @ProcedureName = '$CURSOR$', @CommandToExecute = null; +EXEC tSQLt.SpyProcedure @ProcedureName = '$CURSOR$', @CommandToExecute = NULL; --------------------------------------------------------------------------------------------------------- --tso --tSQLt.SuppressOutput [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -exec tSQLt.SuppressOutput @command = '$CURSOR$'; +EXEC tSQLt.SuppressOutput @command = '$CURSOR$'; --------------------------------------------------------------------------------------------------------- --tea --tSQLt: create #Expected from #Actual [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -select top (0) - * - into #Expected - from #Actual; +SELECT TOP(0) * +INTO #Expected +FROM #Actual; --------------------------------------------------------------------------------------------------------- --tie --tSQLt: INSERT INTO #Expected [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -insert into #Expected -values($CURSOR$); +INSERT INTO #Expected +VALUES($CURSOR$); --------------------------------------------------------------------------------------------------------- --tca --tSQLt: SELECT INTO #Actual; [tSQLt - Database Unit Testing for SQL Server. Get it at http://tsqlt.org] -select - * -into #Actual -from - $CURSOR$; +SELECT * +INTO #Actual +FROM $CURSOR$; --------------------------------------------------------------------------------------------------------- + + + \ No newline at end of file