https://github.com/reekoheek/norm-ddl
https://github.com/reekoheek/norm-ddl
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reekoheek/norm-ddl
- Owner: reekoheek
- License: mit
- Created: 2018-10-08T09:59:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T10:38:45.000Z (over 6 years ago)
- Last Synced: 2025-03-18T10:12:08.326Z (3 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xinix - norm-ddl - Norm DDL - [reekoheek](https://github.com/reekoheek) (Grouping / Tools)
README
# norm-ddl
```sh
npm i norm-ddl
``````js
const DDL = require('norm-ddl');(async () => {
let data,
let manager = new Manager({
connections: [
{
data,
adapter: require('node-norm/adapters/memory'),
schemas: [
{
name: 'foo',
},
{
name: 'bar',
},
],
},
],
});let ddl = new DDL(manager);
await ddl.define('foo');
await ddl.define('bar');
})();
```