
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
dbschema-parser-cli
Advanced tools
Command line interface for dbschema-parser. Generates database-specific resource files from the .dbs files output by Wise Coders Solutions' DbSchema Diagram Designer and Query Tool.
Currently, the parser only generates from MySql to Mongoose (MongoDB). The CLI is meant to be plugable, however only one generator has been created so far (dbschema-mongoose).
npm install -g dbschema-parser-cli
-d | --database : Selected database (default: all)
-e | --enhance : Use enhanced output (if available) (default: false)
-f | --format : Output format. (default: mongoose)
-i | --input : (required) Source DbSchema file.
-o | --output : Output folder path. (default: ./generated/%datetime%)
-r | --reduce : Reduce output path for selected objects (default: false)
-s | --schema : Selected schema (default: all)
-I | --index : Generate index files (default: false)
-O | --overwrite : Overwrite existing files (default: false)
Important: The following examples were generated with the dbschema-mongoose generator. Other generates will output different results.
The only required parameter is the input file (-i or --input):
dbschema -i ../dbschema-parser/examples/geography/resources.dbs
Note only the essential files are generated in a hierarchal structure:
\ generated
+- \ 20170717211353
\ resources
\ geography
+- city.js
country.js
postal_code.js
state.js
Index files are generated by adding the -I (or --index) switch:
dbschema -I -i ../dbschema-parser/examples/geography/resources.dbs
Generates the following Mongoose / MongoDB model files:
\ generated
+- \ 20170717211353
+- index.js
\ resources
+- index.js
\ geography
+- city.js
country.js
index.js
postal_code.js
state.js
Including the -d (or --database), with the name of the database, causes all other databases to be ignored. Adding the -r (or --reduce) switch prevents unnecessary folders from being created, thus creating a flatter output structure:
dbschema -r -d resources -I -i ../dbschema-parser/examples/geography/resources.dbs
The top-most folder was not output because of the -r (or --reduce) switch. Since only database was output there was no need for an index file or subdirectory:
\ generated
+- \ 20170717211353
+- index.js
\ geography
+- city.js
country.js
index.js
postal_code.js
state.js
Similar to above, adding the -s (or --schema) switch, with the schema name, causes all other schemas to be ignored (-d is required in this scenario):
dbschema -r -d resources -s geography -I -i ../dbschema-parser/examples/geography/resources.dbs
Specifying both the schema and database, along with the -r (or --reduce) switch causes minimal output to be generated and the flattest structure:
\ generated
+- \ 20170717211353
+- city.js
country.js
index.js
postal_code.js
state.js
MEAN Factory is an initiative to help teach software development focusing on the MEAN Stack (Mongo, ExpressJS, AngularJS, NodeJS). For more information, visit our web site or email us:
FAQs
Command line interface for dbschema-parser
We found that dbschema-parser-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.