You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
645 B

1 month ago
{
"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;"
]
}
}