diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..6957241 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,6 @@ +{ + "default": true, + "MD003": { "style": "setext_with_atx" }, + "MD007": { "indent": 2 }, + "MD013": { "line_length": 120 } +} diff --git a/README.md b/README.md index 15c5a65..aa7abaa 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,74 @@ +
+ DMorph ====== @@ -174,12 +182,12 @@ import ( var migrationFS embed.FS func migrate(db *sql.DB) error { - sub, subErr := fs.Sub(migrationFS, "testData") - + sub, subErr := fs.Sub(migrationFS, "testData") + if subErr != nil { return subErr - } - + } + return dmorph.Run(db, dmorph.WithDialect(dmorph.DialectSQLite()), dmorph.WithMigrationsFromFS(sub.(fs.ReadDirFS)))