log

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package log provides internal structs and options for the schema package for tracking logs generated when applying migrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Id               int
	MigrationEdition string
	MigrationVersion int
	CreateTime       time.Time
	Entry            string
}

Entry represents a log entry generated during migrations.

type Option

type Option func(*Options)

Option - how Options are passed as arguments.

func WithDeleteLog

func WithDeleteLog(del bool) Option

WithDeleteLog provides an option to specify the deletion of log entries.

type Options

type Options struct {
	WithDeleteLog bool
}

Options = how options are represented

func GetOpts

func GetOpts(opt ...Option) Options

GetOpts - iterate the inbound Options and return a struct.

Jump to

Keyboard shortcuts

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