{"repo":"xakep666/mongo-migrate","free":true,"listed":false,"github":"https://github.com/xakep666/mongo-migrate","clone":"git clone https://github.com/xakep666/mongo-migrate.git","description":"Versioned migrations for MongoDB.","language":"Go","stars":117,"topics":["golang","mongodb","mgo","migrations","versioned-migrations","database-management","database-migrations"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Versioned migrations for MongoDB This package allows to perform versioned migrations on your MongoDB using mongo-go-driver. Inspired by go-pg migrations. Table of Contents ================= Prerequisites Installation Usage Use case \\#1\\. Migrations in files\\. Use case \\#2\\. Migrations in application code\\. How it works? License Prerequisites Golang = 1.22 Installation Usage Use case #1. Migrations in files. Create a package with migration files. File name should be like .go . 1 add-my-index.go Import it in your application. Run migrations. Use case #2. Migrations in application code. Just define it anywhere you want and run it. How it works? This package creates a special collection (by default it s name is \"migrations\") for versioning. In this collection stored documents like Current database version determined as version from latest inserted document. You can change collection name using SetMigrationsCollection methods. Remember that if you want to use custom collection name you need to set it before running migrations. License mongo-migrate project is licensed under the terms of the MIT license. Please see LICENSE in this repository for more details.","default_branch":null,"files":null,"tree":[],"storefront":"/r/xakep666","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xakep666/mongo-migrate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}