db

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

ABOUTME: Database management commands for bingoctl ABOUTME: Parent command that groups database-related subcommands like seed

ABOUTME: Seed command implementation for database seeding ABOUTME: Uses dynamic runner to compile and execute user-defined seeders

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDB

func NewCmdDB() *cobra.Command

NewCmdDB returns new initialized instance of 'db' command.

func NewCmdSeed

func NewCmdSeed() *cobra.Command

NewCmdSeed returns new initialized instance of 'seed' sub command.

Types

type Options

type Options struct {
	Verbose bool
	Rebuild bool
}

Options is an option struct to support 'db' sub commands.

func NewOptions

func NewOptions() *Options

NewOptions returns an initialized Options instance.

type SeedOptions

type SeedOptions struct {
	*Options
	Seeder string
}

SeedOptions is an option struct to support 'seed' sub command.

func NewSeedOptions

func NewSeedOptions() *SeedOptions

NewSeedOptions returns an initialized SeedOptions instance.

func (*SeedOptions) Run

func (o *SeedOptions) Run() error

Run executes the seed command.

Jump to

Keyboard shortcuts

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