db

package
v0.0.0-...-2327e9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Index

Constants

This section is empty.

Variables

View Source
var CreateCmd = &cobra.Command{
	Use:   "create",
	Short: "Create database",
	Long:  `Create dababase.`,
	Run:   execCreateCmd,
}

CreateCmd represents the create command

View Source
var DropCmd = &cobra.Command{
	Use:   "drop",
	Short: "Drop database",
	Long:  `Drop dababase.`,
	Run:   execDropCmd,
}
View Source
var MigrateCmd = &cobra.Command{
	Use:   "migrate",
	Short: "Migrate database",
	Long:  `Run database migrations.`,
	Run:   execMigrateCmd,
}

MigrateCmd represents the migrate command

View Source
var RollbackCmd = &cobra.Command{
	Use:   "rollback",
	Short: "Rollback database",
	Long:  `Rollback one database migration.`,
	Run:   execRollbackCmd,
}

RollbackCmd represents the rollback command

View Source
var SeedCmd = &cobra.Command{
	Use:   "seed",
	Short: "Seed database",
	Long:  `Backfill database with seed data.`,
	Run:   execSeedCmd,
}

SeedCmd represents the seed command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL