pggit

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateTableSql = `` /* 488-byte string literal not displayed */

	DeleteVersionSql = `DELETE FROM %s WHERE version = $1`
	UpdateVersionSql = `UPDATE %s SET version = $1 WHERE version = $2`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PgGit

type PgGit struct {
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB, branch, table string) (*PgGit, error)

func (*PgGit) Config

func (pgt *PgGit) Config() *pgPlug.Config

func (*PgGit) DeleteVersion

func (pgt *PgGit) DeleteVersion(ctx context.Context, branch string) error

func (*PgGit) MergeTo

func (pgt *PgGit) MergeTo(ctx context.Context, branch string) error

func (*PgGit) Plugin

func (pgt *PgGit) Plugin() plugins.IPlugin

func (*PgGit) Read

func (pgt *PgGit) Read(file, key string) ([]byte, error)

func (*PgGit) Save

func (pgt *PgGit) Save(file, key string, data []byte) error

func (*PgGit) SetVersion

func (pgt *PgGit) SetVersion(branch string) error

Jump to

Keyboard shortcuts

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