Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MigrationCreator = func(migrationBodySql string, currentMigration int) string { return fmt.Sprintf("begin transaction;\n"+ "%s\n"+ "insert into migrations (id) values (%d);\n"+ "commit;", migrationBodySql, currentMigration) } LatestMigrationSelectorSql = "select id from migrations order by id desc limit 1" IsInitialMigrationError = func(err error) bool { return strings.HasPrefix(err.Error(), "pq: relation") && strings.HasSuffix(err.Error(), "does not exist") } )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.