Documentation
¶
Overview ¶
Package sqlfile manage the handling with sql files
Index ¶
Constants ¶
View Source
const ( // CommandUpgrade represents the string to get the upgrade statements CommandUpgrade = "up" // CommandDowngrade represents the string to get the downgrade statements CommandDowngrade = "down" )
Variables ¶
View Source
var ( // ErrScanFiles is used if scanning a file fails ErrScanFiles = errors.New("scan files failed") )
Functions ¶
func Scan ¶
Scan returns a sorted (asc) list of files (including path) ending with .sql and file size bigger than zero. It excludes directories.
func ScanReverse ¶
ScanReverse does the same as Scan but returns the filenames in reverse order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.