Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sqlx.DB

Functions

func Initialize

func Initialize(databasePath string)

func Reset

func Reset(databasePath string) error

func WithInstance

func WithInstance(instance *Packr2Source) (source.Driver, error)

Types

type Packr2Source

type Packr2Source struct {
	Box        *packr.Box
	Migrations *source.Migrations
}

func (*Packr2Source) Close

func (s *Packr2Source) Close() error

func (*Packr2Source) First

func (s *Packr2Source) First() (version uint, err error)

func (*Packr2Source) Next

func (s *Packr2Source) Next(version uint) (nextVersion uint, err error)

func (*Packr2Source) Open

func (s *Packr2Source) Open(url string) (source.Driver, error)

func (*Packr2Source) Prev

func (s *Packr2Source) Prev(version uint) (prevVersion uint, err error)

func (*Packr2Source) ReadDown

func (s *Packr2Source) ReadDown(version uint) (r io.ReadCloser, identifier string, err error)

func (*Packr2Source) ReadUp

func (s *Packr2Source) ReadUp(version uint) (r io.ReadCloser, identifier string, err error)

Jump to

Keyboard shortcuts

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