Registry / database / norm-ddl-mysql

norm-ddl-mysql

JSON →
library0.0.4jsnpmunverified

A MySQL-specific dialect for norm-ddl, providing DDL generation and schema management for MySQL databases. Version 0.0.4 is a very early release with no documented release cadence. Compared to alternatives like Sequelize migrations or Knex schema builder, this package is tightly coupled with the norm-ddl ecosystem and offers minimal abstraction over raw MySQL DDL. Use only if already committed to norm-ddl.

npm install norm-ddl-mysql
INSTALL
IMPORT
SIG · NORM-DDL-MYSQL
N
norm-ddl-mysql
databasejavascriptv0.0.4
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.

default export
import normDdlMysql from 'norm-ddl-mysql'
const normDdlMysql = require('norm-ddl-mysql')
Package likely exports a single function/object; ESM only, no CJS wrapper.

Shows how to create a MySQL DDL statement using the norm-ddl-mysql dialect with norm-ddl.

import normDdlMysql from 'norm-ddl-mysql'; import { normDdl } from 'norm-ddl'; const mysqlDialect = normDdlMysql(); const schema = normDdl(mysqlDialect); const table = schema.createTable('users', (t) => { t.increments('id'); t.string('email', 255); t.timestamps(); }); console.log(table.toSQL());
Debug
Known issues
breakingPackage is version 0.x.x – breaking changes may occur at any minor/patch release.
fix
Pin to exact version or expect breaking changes.
affects: >=0.0.0
deprecatedNo indication of maintenance or updates; last release may be final.
fix
Consider using mature alternatives like knex or sequelize.
affects: >=0.0.4
gotchaPeer dependency norm-ddl may have its own breaking changes that affect this package.
fix
Ensure norm-ddl version compatibility: ^0.1.1.
affects: *
Errors
Common errors & fixes
Cannot find module 'norm-ddl'
norm-ddl is a peer dependency and not installed automatically
fix
Install norm-ddl explicitly: npm install norm-ddl
normDdlMysql is not a function
Wrong import style; package likely has a default export that is a function
fix
Use import normDdlMysql from 'norm-ddl-mysql'
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies
norm-ddlrequiredpeer dependency – core library providing DDL abstraction
Agent activity
5 hits · last 30 days
node
4
Resources
norm-ddl-mysql — npm install norm-ddl-mysql · libregistry