initial
This commit is contained in:
commit
8cc59af68e
37 changed files with 72435 additions and 0 deletions
25
lua/snippets/sql.json
Normal file
25
lua/snippets/sql.json
Normal 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;"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue