Socket
Socket
Sign inDemoInstall

@lastcall/elasticsearch-migrate

Package Overview
Dependencies
45
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lastcall/elasticsearch-migrate

Migration framework for NodeJS/Elasticsearch.


Version published
Maintainers
2
Created

Readme

Source

Elasticsearch Migrate

This is a schema migration framework for Elasticsearch (7+).

To use it:

  1. npm install @lastcall/elasticsearch-migrate
  2. Configure it.

Configuration:

To configure migrations, create a new entry in your project's package.json with the key elasticsearch-migrate. Example:

{
...
  "elasticsearch-migrate": {
    "root": ".",
    "migrations": ["./dist/migrations/*.js"],
    "elasticsearch": "http://localhost:9200",
    "index": "migrations"
  }
}

Each configuration option is optional, with a good default provided. Options are described below:

  • root: The root directory to use when resolving the migrations pattern (defaults to the current working directory).
  • migrations: Glob patterns pointing to migration files, which must be in .js format. Defaults to ./migrations/*.js.
  • elasticsearch: Configuration options for the Elasticsearch client. May be a string URI, a relative path pointing to a javascript file that exports a fully configured @elastic/elasticsearch Client object, or an object specifying the Elasticsearch configuration.
  • index: The Elasticsearch index to use for tracking migration status. Defaults to migrations.

FAQs

Last updated on 31 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc