source

package
v0.0.0-...-709588c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bindata

type Bindata struct {
	AssetNames []string
	Asset      func(string) ([]byte, error)
	Root       string
}

Bindata adds SQL files to a store from go-bindata

func (*Bindata) Source

func (s *Bindata) Source(store *squeeze.Store) error

Source implements the Sourcer interface, parsing files that match the Pattern in the Root and adding them to the Store

type Directory

type Directory struct {
	Root    string
	Pattern string
}

Directory adds SQL files to a store from a filesystem directory

func NewDirectory

func NewDirectory(root string) *Directory

NewDirectory constructs a source to load SQL templates from a directory

func (*Directory) Source

func (d *Directory) Source(store *squeeze.Store) error

Source implements the Sourcer interface parsing files that match the Pattern in the Root and adding them to the Store

type Packr

type Packr struct {
	Box *packr.Box
}

Packr adds SQL files to a squeeze store from a packr.Box

func (*Packr) Source

func (s *Packr) Source(store *squeeze.Store) error

Source implements the Sourcer interface, parsing files from a packr Box and adding them to the template Store

Jump to

Keyboard shortcuts

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