Documentation
¶
Index ¶
- Constants
- Variables
- func ContainStr(ss []string, s string) bool
- func EscapeSqlName(isPostgres bool, name string) string
- func EscapeSqlNames(isPostgres bool, names []string) []string
- func MigrationFileName(name string) string
- func ReadPath(path string, suffix string) ([]string, error)
- func SlideStrEqual(a, b []string) bool
- func ToSnakeCase(input string) string
Constants ¶
View Source
const ( // DefaultMigrationFolder ... DefaultMigrationFolder = "migrations/" // DefaultMigrationUpSuffix ... DefaultMigrationUpSuffix = ".up.sql" // DefaultMigrationDownSuffix ... DefaultMigrationDownSuffix = ".down.sql" // DefaultMigrationTable ... DefaultMigrationTable = "schema_migrations" )
Variables ¶
View Source
var ( // PathDoesNotExistErr ... PathDoesNotExistErr = errors.Errorf("path does not exist") )
Functions ¶
func EscapeSqlNames ¶
EscapeSqlNames ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.