diff --git a/README.md b/README.md index 8242fed..53affc8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/feather/) ```sh -gleam add feather +gleam add feather@v1 ``` Add the following fields to your gleam.toml file: @@ -20,15 +20,16 @@ Running the command `gleam run -m feather -- schema` will create the file ./sche ```gleam import feather +import feather/migrate import gleam/result import gleam/erlang import sqlight pub fn main() { let assert Ok(priv_dir) = erlang.priv_directory("my_module_name") - use migrations <- result.try(feather.get_migrations(priv_dir <> "/migrations")) + use migrations <- result.try(migrate.get_migrations(priv_dir <> "/migrations")) use connection <- feather.connect(feather.Config(..feather.default_config(), file: "./database.db")) - feather.migrate(migrations, on: connection) + migrate.migrate(migrations, on: connection) } ``` diff --git a/gleam.toml b/gleam.toml index aae92ca..6cac58c 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "feather" -version = "1.2.0" +version = "1.2.1" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager. @@ -13,15 +13,15 @@ repository = { type = "github", user = "VioletBuse", repo = "feather" } # https://gleam.run/writing-gleam/gleam-toml/. [dependencies] -gleam_stdlib = ">= 0.34.0 and < 2.0.0" -sqlight = ">= 0.9.0 and < 1.0.0" -simplifile = ">= 2.0.0 and < 3.0.0" +argv = ">= 1.0.2 and < 2.0.0" filepath = ">= 1.0.0 and < 2.0.0" +gleam_erlang = ">= 0.25.0 and < 2.0.0" +gleam_otp = ">= 0.10.0 and < 2.0.0" +gleam_stdlib = ">= 0.34.0 and < 2.0.0" justin = ">= 1.0.1 and < 2.0.0" -argv = ">= 1.0.2 and < 2.0.0" -gleam_erlang = ">= 0.25.0 and < 1.0.0" -puddle = ">= 0.5.0 and < 1.0.0" -gleam_otp = ">= 0.10.0 and < 1.0.0" +puddle = ">= 0.5.0 and < 2.0.0" +simplifile = ">= 2.0.0 and < 3.0.0" +sqlight = ">= 0.9.0 and < 2.0.0" tom = ">= 1.0.1 and < 2.0.0" [dev-dependencies]