-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Albert Ribas <[email protected]>
- Loading branch information
1 parent
8db2b03
commit cfb9d85
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Espanso SQL Commands | ||
Espanso package with most used commands | ||
|
||
|
||
## Available matches | ||
| Trigger | Replace | | ||
|---------|------------------| | ||
| :CDB: | CREATE DATABASE | | ||
| :ADB: | ALTER DATABASE | | ||
| :II: | INSERT INTO | | ||
| :SF: | SELECT * FROM | | ||
| :DF: | DELETE FROM | | ||
| :CTB: | CREATE TABLE | | ||
| :DTB: | DROP TABLE | | ||
| :GB: | GROUP BY | | ||
| :OB: | ORDER BY | | ||
| :WH: | WHERE | | ||
|
||
|
||
**Note**: This is the first version. More commands will be added in the future based on requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: "sql-commands" | ||
title: "SQL Commands" | ||
description: A package that provides the most used SQL commands. | ||
version: 0.1.0 | ||
author: Albert Ribas | ||
tags: ["SQL", "database"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
matches: | ||
- trigger: ":CDB:" | ||
replace: "CREATE DATABASE" | ||
|
||
- trigger: ":ADB:" | ||
replace: "ALTER DATABASE" | ||
|
||
- trigger: ":II:" | ||
replace: "INSERT INTO" | ||
|
||
- trigger: ":SF:" | ||
replace: "SELECT * FROM" | ||
|
||
- trigger: ":DF:" | ||
replace: "DELETE FROM" | ||
|
||
- trigger: ":CTB:" | ||
replace: "CREATE TABLE" | ||
|
||
- trigger: ":DTB:" | ||
replace: "DROP TABLE" | ||
|
||
- trigger: ":GB:" | ||
replace: "GROUP BY" | ||
|
||
- trigger: ":OB:" | ||
replace: "ORDER BY" | ||
|
||
- trigger: ":WH:" | ||
replace: "WHERE" |