This commit is contained in:
Lucas F. 2024-12-10 19:29:04 -03:00
commit 8cc59af68e
37 changed files with 72435 additions and 0 deletions

25
lua/snippets/sql.json Normal file
View file

@ -0,0 +1,25 @@
{
"goosesql": {
"prefix": "goosesql",
"description": "create up and down comments",
"body": [
"-- +goose Up\n",
"-- +goose Down\n"
]
},
"goosetable": {
"prefix": "goosetable",
"description": "create sql table",
"body": [
"-- +goose Up\n",
"CREATE TABLE $1 (",
"\tid UUID PRIMARY KEY,",
"\tcreated_at TIMESTAMP NOT NULL,",
"\tupdated_at TIMESTAMP NOT NULL,",
"\tname TEXT NOT NULL",
");\n",
"-- +goose Down\n",
"DROP TABLE $1;"
]
}
}