Top 2.5% dependent packages on proxy.golang.org
Top 1.3% dependent repos on proxy.golang.org
Top 5.0% forks on proxy.golang.org
proxy.golang.org : github.com/mongodb/anser
Package anser provides a document transformation and processing tool to support data migrations. The anser.Application is the primary interface in which migrations are defined and executed. Applications are constructed with a list of MigrationGenerators, and relevant operations. Then the Setup method configures the application, with an anser.Environment, which sets up and collects dependency information. Finally, the Run method executes the migrations in two phases: first by generating migration jobs, and finally by running all migration jobs. The ordering of migrations is derived from the dependency information between generators and the jobs that they generate. When possible jobs are executed in parallel, but the execution of migration operations is a property of the queue object configured in the anser.Environment. The anser package provides a custom amboy/dependency.Manager object, which allows migrations to express dependencies to other migrations. The State() method ensures that all migration IDs specified as edges are satisfied before reporting as "ready" for work. Anser provides the Environment interface, with a global instance accessible via the exported GetEnvironment() function to provide access to runtime configuration state: database connections; amboy.Queue objects, and registries for task implementations. The Environment is an interface: you can build a mock, or use one provided for testing purposes by anser (coming soon). Generators create migration operations and are the first step in an anser Migration. They are supersets of amboy.Job interfaces. The current limitation is that the generated jobs must be stored within the implementation of the generator job, which means they must either all fit in memory *or* be serializable independently (e.g. fit in the 16mb document limit if using a MongoDB backed queue.)
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/mongodb/anser
License: Apache-2.0
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/mongodb
Dependent packages: 5
Dependent repositories: 17
Stars: 17 on GitHub
Forks: 20 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 23 days ago