Skip to content

Instantly share code, notes, and snippets.

@akumbhani66
Last active February 25, 2021 07:41
Show Gist options
  • Save akumbhani66/1ab8142a02f4f9be034c96ddfbaedf7d to your computer and use it in GitHub Desktop.
Save akumbhani66/1ab8142a02f4f9be034c96ddfbaedf7d to your computer and use it in GitHub Desktop.
A simple demo for database operation. In general and used GO for tooling.

Basic database Operations

  1. Migrations
  2. Seeders
  3. Scripts

Migrations

Why migrations?

To revise existing structure of table To add new DB Table To Delete existing Table And other Amendments

Ways of perform migration:

  1. Simpel BASH/GO Script
  2. Migration Tool
  3. ORM

Seeders

Why seeders?

To prevent fall/panic web application which are depends on data Migrations from one database to another one Migrations from No-SQL to SQL

Ways of perform migration:

  1. Simpel BASH/GO Script
  2. Migration Tool
  3. ORM

Examples:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment