@rocketmakers/rdbms-generate
v0.1.13
Published
1. Create a 'rdmbs-generate.js' file in the root of your project
Downloads
2,092
Keywords
Readme
Instructions
- Create a 'rdmbs-generate.js' file in the root of your project
module.exports = {
metadataCreation: {
kind: 'mssql',
config: {
user: 'SA',
server: 'localhost',
port: 1433,
database: 'mydb',
password: 'Password123!',
options: { trustServerCertificate: true }
},
options: {
name: 'db',
database: 'mydb',
schema: ['dbo'],
casing: 'snake',
},
},
typeorm: {
output: 'src/data',
},
};
- Create a script in your package.json
"scripts": {
"generate-typeorm": "rdbms-generate",
},