package
0.2.2
Repository: https://github.com/go-morph/morph.git
Documentation: pkg.go.dev

# README

go-bindata source

This source reads migrations from a go-bindata embedded binary file.

Usage

To read the embedded data, create a migration source through the WithInstance method and then instantiate morph:

import (
    "github.com/go-morph/morph"
    "github.com/go-morph/morph/sources/go_bindata"
    "github.com/go-morph/morph/sources/go_bindata/testdata"
)

func main() {
    res := bindata.Resource(testdata.AssetNames(), func(name string) ([]byte, error) {
        return testdata.Asset(name)
    })

    src, err := bindata.WithInstance(res)
    if err != nil {
        panic(err)
    }

    // create the morph instance from the source and driver
    m := morph.NewFromConnURL("postgres://...", src, opts)
}

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author