{"id":20929175,"url":"https://github.com/duct-framework/migrator.ragtime","last_synced_at":"2025-04-13T06:37:14.136Z","repository":{"id":49170210,"uuid":"86323820","full_name":"duct-framework/migrator.ragtime","owner":"duct-framework","description":"Integrant methods for running database migrations using Ragtime","archived":false,"fork":false,"pushed_at":"2024-12-01T01:58:04.000Z","size":57,"stargazers_count":5,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T23:06:21.831Z","etag":null,"topics":["clojure","duct","integrant","migrations","ragtime","sql"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duct-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-27T10:46:38.000Z","updated_at":"2024-12-01T01:58:06.000Z","dependencies_parsed_at":"2025-01-02T16:16:40.141Z","dependency_job_id":null,"html_url":"https://github.com/duct-framework/migrator.ragtime","commit_stats":{"total_commits":60,"total_committers":7,"mean_commits":8.571428571428571,"dds":0.09999999999999998,"last_synced_commit":"33077e77c4987b256a4bee76ed64d76c5b845887"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fmigrator.ragtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fmigrator.ragtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fmigrator.ragtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duct-framework%2Fmigrator.ragtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duct-framework","download_url":"https://codeload.github.com/duct-framework/migrator.ragtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675337,"owners_count":21143763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","duct","integrant","migrations","ragtime","sql"],"created_at":"2024-11-18T21:17:50.222Z","updated_at":"2025-04-13T06:37:14.113Z","avatar_url":"https://github.com/duct-framework.png","language":"Clojure","readme":"# Duct migrator.ragtime [![Build Status](https://github.com/duct-framework/migrator.ragtime/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/migrator.ragtime/actions/workflows/test.yml)\n\n[Integrant][] methods for running database migrations using\n[Ragtime][].\n\n[integrant]: https://github.com/weavejester/integrant\n[ragtime]:   https://github.com/weavejester/ragtime\n\n## Installation\n\nAdd the following dependency to your deps.edn file:\n\n    org.duct-framework/migrator.ragtime {:mvn/version \"0.5.2\"}\n\nOr to your Leiningen project file:\n\n    [org.duct-framework/migrator.ragtime \"0.5.2\"]\n\n## Usage\n\nThis library provides the `:duct.migrator/ragtime` Integrant key,\nwhich takes five options:\n\n```edn\n{:duct.migrator/ragtime\n {:database         #ig/ref :duct.database/sql\n  :logger           #ig/ref :duct/logger\n  :strategy         :rebase\n  :migrations-file  \"migrations.edn\"\n  :migrations-table \"ragtime_migrations\"}}\n```\n\n### :database\n\nThe `:database` key should be a SQL database compatible with the Duct\n[database.sql][] library, such as [database.sql.hikaricp][]:\n\n```edn\n{:duct.database.sql/hikaricp {:jdbcUrl \"jdbc:sqlite:db/foo.sqlite\"}}\n```\n\n[database.sql]: https://github.com/duct-framework/database.sql\n[database.sql.hikaricp]: https://github.com/duct-framework/database.sql.hikaricp\n\n### :logger\n\nThe `:logger` key should be a logger compatible with the Duct\n[logger][] library, such as [logger.simple][]:\n\n```edn\n{:duct.logger/simple {:appenders [{:type :stdout}]}}\n```\n\n[logger]: https://github.com/duct-framework/logger\n\n### :strategy\n\nThe `:strategy` is either `:apply-new`, `:raise-error` or\n`:rebase`. These correspond to the [ragtime strategies][] with the\nsame names.\n\n[ragtime strategies]: https://weavejester.github.io/ragtime/ragtime.strategy.html\n\n### :migrations-file\n\nA path to an edn file containing a vector of [Ragtime SQL migrations][].\n\n[ragtime sql migrations]: https://github.com/weavejester/ragtime/wiki/SQL-Migrations#edn\n\n### :migrations-table\n\nFinally, the `:migrations-table` optional key corresponds\nto the [ragtime sql-database][] option with the same name. It is the\nname of the table to store the applied migrations (defaults to\n\"ragtime_migrations\" if not specified).\n\n[ragtime sql-database]: https://weavejester.github.io/ragtime/ragtime.jdbc.html#var-sql-database\n\n## License\n\nCopyright © 2024 James Reeves\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduct-framework%2Fmigrator.ragtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduct-framework%2Fmigrator.ragtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduct-framework%2Fmigrator.ragtime/lists"}