{"id":43486,"library":"npmw-sql-migrate-linux-x64","title":"sql-migrate Linux x64 Binary","description":"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.","status":"active","version":"1.8.1","language":"javascript","source_language":"en","source_url":"https://github.com/kamil5b/npmw-sql-migrate","tags":["javascript"],"install":[{"cmd":"npm install npmw-sql-migrate-linux-x64","lang":"bash","label":"npm"},{"cmd":"yarn add npmw-sql-migrate-linux-x64","lang":"bash","label":"yarn"},{"cmd":"pnpm add npmw-sql-migrate-linux-x64","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Wrapper package that selects the correct binary per platform","package":"npmw-sql-migrate","optional":true}],"imports":[{"note":"This package exposes a binary, not a JavaScript module. Use child_process or install the wrapper package.","wrong":"import sqlMigrate from 'npmw-sql-migrate-linux-x64';","symbol":"binary","correct":"import { execFile } from 'child_process'; execFile(require.resolve('npmw-sql-migrate-linux-x64'), ['up']);"}],"quickstart":{"code":"const { execFile } = require('child_process');\nconst binaryPath = require.resolve('npmw-sql-migrate-linux-x64');\nexecFile(binaryPath, ['up', '-config', 'migrate.yml'], (err, stdout, stderr) => {\n  if (err) throw err;\n  console.log(stdout);\n});","lang":"javascript","description":"Demonstrates how to invoke the sql-migrate binary directly from Node.js using child_process."},"warnings":[{"fix":"Install the wrapper package npmw-sql-migrate instead, which handles platform detection.","message":"This package is platform-specific (linux-x64). Direct installation will fail on other platforms.","severity":"gotcha","affected_versions":"all"},{"fix":"Use child_process or install npmw-sql-migrate for programmatic usage.","message":"The exported module does not contain a JS API; it is a binary file. Do not attempt to require it as a regular module.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.8.1':19 'automat':51 'binari':6,10,25,55 'cli':31,87 'correct':54 'databas':59 'direct':38 'distribut':24 'driver':65 'file':73 'format':74 'instal':37,40 'instead':39 'javascript':88 'linux':4,16 'migrat':3,14,30,49,60,72,79 'multi':43 'multi-platform':42 'multipl':64 'mysql':66 'npmw':47 'npmw-sql-migrat':46 'packag':21 'platform':8,44 'platform-specif':7 'postgresql':67 'programmat':84 'provid':58 'raw':77 'select':52 'simpl':71 'specif':9 'sql':2,13,29,48,78 'sql-migrat':1,12,28 'sqlite':68 'support':62 'tool':32,57 'use':76,83 'version':18 'via':86 'wrapper':45 'x64':5,17","created_at":"2026-06-05T17:00:01.664292+00:00","updated_at":"2026-06-05T17:00:01.664292+00:00","problems":[{"fix":"Install npmw-sql-migrate (the wrapper) instead, which automatically selects the correct binary for your platform.","cause":"Package not installed or used on wrong platform.","error":"Cannot find module 'npmw-sql-migrate-linux-x64'"},{"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.","cause":"Attempted to require the binary package as a JS module.","error":"Error: Module does not export anything"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/kamil5b/npmw-sql-migrate#readme","github":"https://github.com/kamil5b/npmw-sql-migrate","docs":null,"changelog":null,"pypi":null,"npm":"npmw-sql-migrate-linux-x64","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}