Registry / devops / npmw-sql-migrate-linux-x64

npmw-sql-migrate-linux-x64

JSON →
library1.8.1jsnpmunverified

Platform-specific binary for sql-migrate on Linux x64. Version 1.8.1. This package is a distribution binary for the sql-migrate CLI tool. It should not be installed directly; instead, install the multi-platform wrapper npmw-sql-migrate which automatically selects the correct binary. The tool provides database migrations with support for multiple drivers (MySQL, PostgreSQL, SQLite) and a simple migration file format. It uses raw SQL migrations and can be used programmatically or via CLI.

npm install npmw-sql-migrate-linux-x64
INSTALL
IMPORT
SIG · NPMW-SQL-MIGRATE-L
N
npmw-sql-migrate-linux-x64
devopsjavascriptv1.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

binary
import { execFile } from 'child_process'; execFile(require.resolve('npmw-sql-migrate-linux-x64'), ['up']);
import sqlMigrate from 'npmw-sql-migrate-linux-x64';
This package exposes a binary, not a JavaScript module. Use child_process or install the wrapper package.

Demonstrates how to invoke the sql-migrate binary directly from Node.js using child_process.

const { execFile } = require('child_process'); const binaryPath = require.resolve('npmw-sql-migrate-linux-x64'); execFile(binaryPath, ['up', '-config', 'migrate.yml'], (err, stdout, stderr) => { if (err) throw err; console.log(stdout); });
Debug
Known issues
gotchaThis package is platform-specific (linux-x64). Direct installation will fail on other platforms.
fix
Install the wrapper package npmw-sql-migrate instead, which handles platform detection.
affects: all
gotchaThe exported module does not contain a JS API; it is a binary file. Do not attempt to require it as a regular module.
fix
Use child_process or install npmw-sql-migrate for programmatic usage.
affects: all
Errors
Common errors & fixes
Cannot find module 'npmw-sql-migrate-linux-x64'
Package not installed or used on wrong platform.
fix
Install npmw-sql-migrate (the wrapper) instead, which automatically selects the correct binary for your platform.
Error: Module does not export anything
Attempted to require the binary package as a JS module.
fix
This package is a binary. Use `const binaryPath = require.resolve('npmw-sql-migrate-linux-x64')` to get the path, then execute via child_process.
Upgrade
Version history
1.8.1latest on npm
Audit
Dependencies
npmw-sql-migrateoptionalWrapper package that selects the correct binary per platform
Agent activity
2 hits · last 30 days
node
2
Resources
npmw-sql-migrate-linux-x64 — npm install npmw-sql-migrate-linux-x64 · libregistry