From 9cd3fcb04801f7cf51997f1c8f2024a2b263a460 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Thu, 21 Mar 2013 00:17:49 -0700 Subject: [PATCH] Added sql snippet. --- autoload/neosnippet/snippets/sql.snip | 18 ++++++++++++++++++ doc/neosnippet.txt | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 autoload/neosnippet/snippets/sql.snip diff --git a/autoload/neosnippet/snippets/sql.snip b/autoload/neosnippet/snippets/sql.snip new file mode 100644 index 0000000..da12995 --- /dev/null +++ b/autoload/neosnippet/snippets/sql.snip @@ -0,0 +1,18 @@ +snippet CREATE TABLE +abbr CREATE TABLE { ... } +options head + CREATE TABLE ${1:cities} ( + ${0:name varchar(80), country_name text} + ); + DROP TABLE $1; + +snippet INSERT +abbr INSERT INTO ... VALUES ( ... ) +options head + INSERT INTO ${1:cities} + VALUES (${0:'Vancouver', 'Canada'}); + +snippet SELECT +abbr SELECT * from ... +options head + SELECT ${1:*} FROM ${2:cities} ${0:WHERE name = 'Vancouver'}; diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 0c5635d..c9333c6 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -747,6 +747,9 @@ A: ============================================================================== CHANGELOG *neosnippet-changelog* +2013-03-21 +- Added sql snippet. + 2013-03-16 - Supported preview window.