Skip to content

A VSCode extension which provides SQL snippets for creating idempotent SQL. Idempotency is especially important when creating database migration scripts.

Notifications You must be signed in to change notification settings

hloughrey/sql-snippets

Repository files navigation

SQL Snippets Logo

SQL Snippets

SQL-Snippets provides code snippets for creating idempotent SQL. Idempotency is especially important when creating database migration scripts.

A SQL script can be described as idempotent when it can be applied multiple times without changing the result beyond the initial application.

Demo

Features

Command Postgres Prefix
Create Schema psql - Create new schema
Drop Schema psql - Drop exisiting schema
Create Table psql - Create new table
Drop Table psql - Drop existing table
Add Column psql - Add new column
Drop Column psql - Drop a column
Add Constraint psql - Add new constraint
Drop Constraint psql - Drop existing constraint
Add Index psql - Add index
Drop Index psql - Drop index

About

A VSCode extension which provides SQL snippets for creating idempotent SQL. Idempotency is especially important when creating database migration scripts.

Topics

Resources

Stars

Watchers

Forks