Skip to content

Commit

Permalink
add sql-commands package (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: Albert Ribas <[email protected]>
  • Loading branch information
aribasadme and albertribasflix authored May 5, 2024
1 parent 8db2b03 commit cfb9d85
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/sql-commands/0.1.0/README.md
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.
6 changes: 6 additions & 0 deletions packages/sql-commands/0.1.0/_manifest.yml
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"]
30 changes: 30 additions & 0 deletions packages/sql-commands/0.1.0/packages.yml
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"

0 comments on commit cfb9d85

Please sign in to comment.