{"id":15286898,"url":"https://github.com/weavejester/ragtime","last_synced_at":"2025-05-14T22:09:39.792Z","repository":{"id":1884494,"uuid":"2810261","full_name":"weavejester/ragtime","owner":"weavejester","description":"Database-independent migration library","archived":false,"fork":false,"pushed_at":"2024-12-03T16:15:12.000Z","size":427,"stargazers_count":619,"open_issues_count":21,"forks_count":85,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-13T19:17:32.384Z","etag":null,"topics":["clojure","database","jdbc","migrations","sql"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weavejester.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.html","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,"zenodo":null}},"created_at":"2011-11-19T19:06:18.000Z","updated_at":"2025-04-25T15:29:23.000Z","dependencies_parsed_at":"2023-07-06T15:16:25.023Z","dependency_job_id":"43655353-8cdb-48d3-b783-9ced5ae51146","html_url":"https://github.com/weavejester/ragtime","commit_stats":{"total_commits":248,"total_committers":31,"mean_commits":8.0,"dds":"0.14919354838709675","last_synced_commit":"091a7a7e09e6dc1011c1d3805f3c8ae0e51f199c"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fragtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fragtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fragtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavejester%2Fragtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weavejester","download_url":"https://codeload.github.com/weavejester/ragtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235701,"owners_count":22036964,"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","database","jdbc","migrations","sql"],"created_at":"2024-09-30T15:18:54.346Z","updated_at":"2025-05-14T22:09:34.777Z","avatar_url":"https://github.com/weavejester.png","language":"Clojure","readme":"# Ragtime [![Build Status](https://github.com/weavejester/ragtime/actions/workflows/test.yml/badge.svg)](https://github.com/weavejester/ragtime/actions/workflows/test.yml)\n\nRagtime is a Clojure library for migrating structured data in a way\nthat's database independent. It defines a common interface for\nexpressing migrations, much like [Ring][] defines a common interface\nfor expressing web applications.\n\n[ring]: https://github.com/ring-clojure/ring\n\n## Installation\n\nAdd the following dependency to your deps.edn file:\n\n    dev.weavejester/ragtime {:mvn/version \"0.11.0\"}\n\nOr to your Leiningen project file:\n\n    [dev.weavejester/ragtime \"0.11.0\"]\n\n## Overview\n\nRagtime needs a minimum of three things to work:\n\n1. A migratable **data store**\n2. An ordered sequence of **migrations**\n3. A **strategy** on how to deal with conflicts\n\nA data store is an implementation of the `DataStore` protocol, and\ntells Ragtime how to record which migrations are applied to an\narbitrary store of data, such as a database. It has three methods:\n\n* `add-migration-id`      - add a new migration ID to the store\n* `remove-migration-id`   - remove a migration ID from the store\n* `applied-migration-ids` - return an ordered list of applied IDS\n\nMigrations are implementations of the `Migration` protocol, which also\nhas three methods:\n\n* `id`        - returns a unique ID for the migration\n* `run-up!`   - applies the migration to a database\n* `run-down!` - rolls back the migration in a database\n\nRagtime comes with implementations of these protocols for Cloure's\n[java.jdbc][] library and Sean Corfield's [next.jdbc][] library,\ntherefore supporting SQL migrations out of the box.\n\nThe migration store for SQL database is a special migrations table,\nand the migrations can be specified as either `.sql` files, or `.edn`\nfiles. For more information, see the documentation below.\n\nSome Ragtime functions require one more element: a migration index. This\nshould satisfy the `MigrationIndex` protocol, which has three methods:\n\n* `index-migration`       - index a migration by key\n* `deindex-migration`     - remove a migration from the index\n* `get-indexed-migration` - get an indexed migration by key\n\nThis is used for storing migration information. By default this protocol\nis satisfied by an ordinary Clojure map, but could be attached to a\npersistence layer.\n\n[java.jdbc]: https://github.com/clojure/java.jdbc\n[next.jdbc]: https://github.com/seancorfield/next-jdbc\n\n## Documentation\n\n* [Getting Started](https://github.com/weavejester/ragtime/wiki/Getting-Started)\n* [Upgrading from 0.3.x](https://github.com/weavejester/ragtime/wiki/Upgrading-from-0.3.x)\n* [Upgrading from 0.4.x](https://github.com/weavejester/ragtime/wiki/Upgrading-from-0.4.x)\n* [Concepts](https://github.com/weavejester/ragtime/wiki/Concepts)\n* [SQL Migrations](https://github.com/weavejester/ragtime/wiki/SQL-Migrations)\n* [Leiningen Integration](https://github.com/weavejester/ragtime/wiki/Leiningen-Integration)\n* [API docs](http://weavejester.github.io/ragtime)\n* [Third-party Libraries](https://github.com/weavejester/ragtime/wiki/Third-party-Libraries)\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":["Structural Migrations"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavejester%2Fragtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweavejester%2Fragtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavejester%2Fragtime/lists"}