about summary refs log tree commit diff
path: root/snippets/python-mode
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-09T21·50-0400
committerGriffin Smith <root@gws.fyi>2019-07-09T21·50-0400
commit23b179ad1d3d2e07c114741dffc50a8343f0a7a6 (patch)
tree46a6a982b7de4710ddf35ffdf2439d6291924d53 /snippets/python-mode
parenta3eb6846b3eeb739bce26a7b92b6a634688e57af (diff)
A bunch of new snippets
Diffstat (limited to 'snippets/python-mode')
-rw-r--r--snippets/python-mode/add_column5
-rw-r--r--snippets/python-mode/op.get_bind.execute6
2 files changed, 11 insertions, 0 deletions
diff --git a/snippets/python-mode/add_column b/snippets/python-mode/add_column
new file mode 100644
index 000000000000..47e83850d5b7
--- /dev/null
+++ b/snippets/python-mode/add_column
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: add_column
+# key: op.add_column
+# --
+op.add_column('${1:table}', sa.Column('${2:name}', sa.${3:String()}))$0
diff --git a/snippets/python-mode/op.get_bind.execute b/snippets/python-mode/op.get_bind.execute
new file mode 100644
index 000000000000..5f46464ac93a
--- /dev/null
+++ b/snippets/python-mode/op.get_bind.execute
@@ -0,0 +1,6 @@
+# key: exec
+# name: op.get_bind.execute
+# --
+op.get_bind().execute("""
+    `(progn (sqlup-mode) "")`$1
+""")