sql

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApprove  = errors.New("cannot shrink files as there are database records waiting for public approval")
	ErrDel      = errors.New("delete errors")
	ErrArcStore = errors.New("archive store error")
	ErrSQLComp  = errors.New("sql compress errors")
	ErrSQLDel   = errors.New("sql delete errors")
	ErrUnknown  = errors.New("unknown command")
)

Functions

func Compress

func Compress(name string, files []string) error

Compress the collection of files into a named archive.

func Init

func Init() error

Init SQL directory.

func Remove

func Remove(files []string) error

Remove files from the host file system.

func SaveDir

func SaveDir() string

SaveDir returns a usable path to store backups.

Types

type Approvals

type Approvals string
const (
	Preview  Approvals = "previews"
	Incoming Approvals = "incoming"
)

func (Approvals) Approve

func (cmd Approvals) Approve() error

Approve prints the number of records waiting for approval for public display.

func (Approvals) Store

func (cmd Approvals) Store(path, partial string) error

Store incoming or preview files as a tar archive.

type Months

type Months uint

Months of the year.

func Month

func Month(s string) Months

Month returns the Months value of s, which should be a three letter English abbreviation.

Jump to

Keyboard shortcuts

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