Documentation ¶
Overview ¶
Code generated by rice embed-go; DO NOT EDIT.
Index ¶
- func MigrateUp()
- type RiceBoxSource
- func (s *RiceBoxSource) Close() error
- func (s *RiceBoxSource) First() (version uint, err error)
- func (s *RiceBoxSource) Next(version uint) (nextVersion uint, err error)
- func (s *RiceBoxSource) Open(url string) (source.Driver, error)
- func (s *RiceBoxSource) PopulateMigrations(box *rice.Box) error
- func (s *RiceBoxSource) Prev(version uint) (prevVersion uint, err error)
- func (s *RiceBoxSource) ReadDown(version uint) (r io.ReadCloser, identifier string, err error)
- func (s *RiceBoxSource) ReadUp(version uint) (r io.ReadCloser, identifier string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RiceBoxSource ¶
type RiceBoxSource struct {
// contains filtered or unexported fields
}
RiceBoxSource represents the golang-migrate data source from go.rice Box
func (*RiceBoxSource) Close ¶
func (s *RiceBoxSource) Close() error
Close implements the golang-migrate source driver Close interface
func (*RiceBoxSource) First ¶
func (s *RiceBoxSource) First() (version uint, err error)
First implements the golang-migrate source driver First interface
func (*RiceBoxSource) Next ¶
func (s *RiceBoxSource) Next(version uint) (nextVersion uint, err error)
Next implements the golang-migrate source driver Next interface
func (*RiceBoxSource) Open ¶
func (s *RiceBoxSource) Open(url string) (source.Driver, error)
Open implements the golang-migrate source driver Open interface
func (*RiceBoxSource) PopulateMigrations ¶
func (s *RiceBoxSource) PopulateMigrations(box *rice.Box) error
PopulateMigrations populates all migration files from the go.rice box
func (*RiceBoxSource) Prev ¶
func (s *RiceBoxSource) Prev(version uint) (prevVersion uint, err error)
Prev implements the golang-migrate source driver Prev interface
func (*RiceBoxSource) ReadDown ¶
func (s *RiceBoxSource) ReadDown(version uint) (r io.ReadCloser, identifier string, err error)
ReadDown implements the golang-migrate source driver ReadDown interface
func (*RiceBoxSource) ReadUp ¶
func (s *RiceBoxSource) ReadUp(version uint) (r io.ReadCloser, identifier string, err error)
ReadUp implements the golang-migrate source driver ReadUp interface