{"library":"dana","type":"library","category":null,"description":"Dana is a simple, small, and framework-agnostic database schema migration CLI for Node.js, currently supporting MySQL only. It auto-generates migration files by tracking changes in user-defined model files (JavaScript objects describing tables), similar to how Git tracks file changes. Version 1.0.0 is current; no frequent releases reported. Key differentiators: no API to learn (models are plain JS objects), migrations are YAML-based with embedded SQL, built-in rollback support, and model validation before migration generation. Unlike Rails or Knex migrations, users never write migration code manually — dana produces diff-based migration files from model changes.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","cli","command","migration","sql","mysql","ddl","auto-generating","database"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install dana","imports":["const dana = require('dana')","module.exports = { tableName: '...', schema: { columns: {...}, indexes: [...] }, _fid: '...' }","npx dana migrate:make"]},{"cmd":"yarn add dana","imports":[]},{"cmd":"pnpm add dana","imports":[]}],"homepage":"https://github.com/ramhejazi/dana#readme","github":"https://github.com/ramhejazi/dana","docs":null,"changelog":null,"pypi":null,"npm":"dana","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}