{"library":"knex-migration-with-schema","type":"library","category":null,"description":"A utility library for Knex.js (v2.0.0) that simplifies running database migrations across multiple schemas. While Knex supports per-query schema references via `withSchema()`, its built-in `knex.migrate` API lacks native multi-schema support. This library fills that gap by providing `createSchema`, `executeSchemaMigration`, and `executeSchemaMigrationFromDir` functions. It accepts a Knex instance, schema name, and a dictionary of migration objects or a directory of migration files, executing only pending migrations per schema. Released under MIT, actively maintained on GitHub. Key differentiator: enables programmatic schema-scoped migrations without manual schema tracking or external orchestration.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","knex","migration","schemas","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install knex-migration-with-schema","imports":["import { createSchema } from 'knex-migration-with-schema'","import { executeSchemaMigration } from 'knex-migration-with-schema'","import { executeSchemaMigrationFromDir } from 'knex-migration-with-schema'"]},{"cmd":"yarn add knex-migration-with-schema","imports":[]},{"cmd":"pnpm add knex-migration-with-schema","imports":[]}],"homepage":"https://github.com/wgrisa/knex-migration-with-schema","github":"https://github.com/wgrisa/knex-migration-with-schema","docs":null,"changelog":null,"pypi":null,"npm":"knex-migration-with-schema","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}