I am using sql-interactive-mode to connect to 2 databases: MySQL and SQLite. I created yasnippets for mysql in yasnippets/sql-interactive-mode
folder. For example to add a column in MySQL I use the following snippet:
# -*- mode: snippet -*-
# name: Add column
# key: addcol
# --
ALTER TABLE $1 ADD COLUMN \`$2\` $3;
But SQLite uses different syntax. How can I create different yasnippets for different databases?