{"id":21965578,"url":"https://github.com/h44z/lightmigrate-mongodb","last_synced_at":"2026-04-18T06:06:57.529Z","repository":{"id":57650367,"uuid":"447648701","full_name":"h44z/lightmigrate-mongodb","owner":"h44z","description":"Lightweight database migragtion library for Golang - MongoDB driver","archived":false,"fork":false,"pushed_at":"2022-01-14T16:20:14.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T01:26:15.613Z","etag":null,"topics":["database","golang","migration","mongodb"],"latest_commit_sha":null,"homepage":"https://github.com/h44z/lightmigrate","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h44z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-13T15:22:16.000Z","updated_at":"2022-01-14T15:17:14.000Z","dependencies_parsed_at":"2022-09-09T02:31:16.806Z","dependency_job_id":null,"html_url":"https://github.com/h44z/lightmigrate-mongodb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h44z%2Flightmigrate-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h44z%2Flightmigrate-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h44z%2Flightmigrate-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h44z%2Flightmigrate-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h44z","download_url":"https://codeload.github.com/h44z/lightmigrate-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245022369,"owners_count":20548530,"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":["database","golang","migration","mongodb"],"created_at":"2024-11-29T12:48:30.859Z","updated_at":"2026-04-18T06:06:57.519Z","avatar_url":"https://github.com/h44z.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LightMigrate - MongoDB migration driver (v2 alpha)\n\n[![codecov](https://codecov.io/gh/h44z/lightmigrate-mongodb/branch/master/graph/badge.svg?token=N7H27SQUUW)](https://codecov.io/gh/h44z/lightmigrate-mongodb)\n[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://pkg.go.dev/badge/github.com/h44z/lightmigrate-mongodb/mongodb)](https://pkg.go.dev/github.com/h44z/lightmigrate-mongodb/mongodb)\n![GitHub last commit](https://img.shields.io/github/last-commit/h44z/lightmigrate-mongodb)\n[![Go Report Card](https://goreportcard.com/badge/github.com/h44z/lightmigrate-mongodb)](https://goreportcard.com/report/github.com/h44z/lightmigrate-mongodb)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/h44z/lightmigrate-mongodb)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/h44z/lightmigrate-mongodb)\n[![GitHub Release](https://img.shields.io/github/release/h44z/lightmigrate-mongodb.svg)](https://github.com/h44z/lightmigrate-mongodb/releases)\n\nThis module is part of the [LightMigrate](https://github.com/h44z/lightmigrate) library.\nIt provides a migration driver for MongoDB.\n\n## Features\n * Driver work with mongo through [db.runCommands](https://docs.mongodb.com/manual/reference/command/)\n * Migrations support json format. It contains array of commands for `db.runCommand`. Every command is executed in separate request to the database. \n * All json keys have to be in quotes `\"`\n * [Examples](./examples)\n\n## Configuration Options\n\nConfiguration options can be passed to the constructor using the `With\u003cConfig-Option\u003e` functions.\n\n| Config Value           | Defaults          | Description                                                                                                                         |\n|------------------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `MigrationsCollection` | schema_migrations | Name of the migrations collection.                                                                                                  |\n| `Transactions`         | false             | If set to `true` wrap commands in [transaction](https://docs.mongodb.com/manual/core/transactions). Available only for replica set. |\n| `Locking`              | disabled / empty  | The locking configuration, see Locking Config table below.                                                                          |\n| `Logger`               | log.Default()     | The logger instance that should be used.                                                                                            |\n| `VerboseLogging`       | false             | If set to true, more log messages will be printed.                                                                                  |\n\n\n| Locking Config Value   | Defaults              | Description                                          |\n|------------------------|-----------------------|------------------------------------------------------|\n| `MigrationsCollection` | migrate_advisory_lock | Name of the locking collection.                      |\n| `IndexName`            | lock_unique_key       | Name of the unique index for the locking collection. |\n| `Enabled`              | false                 | A boolean flag to enable the database locking.       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh44z%2Flightmigrate-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh44z%2Flightmigrate-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh44z%2Flightmigrate-mongodb/lists"}