npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

generator-mssql-schema

v0.1.3

Published

Exports the layout of a Microsoft SQL Server database to a JSON schema document.

Downloads

7

Readme

Microsoft SQL Server Schema Generator (generator-mssql-schema)

Exports the layout of a Microsoft SQL Server database to a JSON schema document. Essentially, a CLI for the Microsoft SQL Server Schema Reader module.

Author & Usage

As I move from the Microsoft & .NET world to open source and MEAN Stack, there are certain "creature comforts" I cannot live without. One of those is a model-first (or domain-first) code generator. For this to exist we must have a way to expose the database's schema programmatically. This is why I created the Microsoft SQL Server Schema Reader (mssql-schema-reader) module. The actual code generator will eventually come however, in the meantime, we need a way to execute the Schema Reader. That is where the Microsoft SQL Server Schema Generator enters the picture. This Generator provides a simple CLI to the Microsoft SQL Server Schema Reader as well as providing a Yeoman harness for use by the forthcoming MSSQL-to-MongoDB API Gererator.

Thanks,
Fred Lackey
[email protected]


Requirements & Limitations

Please refer to the Microsoft SQL Server Schema Reader for complete requirements & limitations.

Important:
This tool is meant to be used in a development environment where security is not a concern. This is why the decision was made to store the password as clear text in the settings.json file.

Installation

This generator was built for Yeoman, therefore the install command shall be...

npm isntall -g yo generator-mssql-schema

Files & Folders

Each run of the generator will create the following files and folders:

/  
|-- settings.json                    Saved settings.
|--/schemas                          Data directory.
   |-- schema.json                   Current layout of the database.
   |-- schema-info.json              Current raw data from the database.
   |-- TestDB-1443046679-info.json   Previous version of raw data.
   |-- TestDB-1443046841-info.json   An even older version of the raw data.
   |-- TestDB-1443046855-info.json   Really old version of the raw data.

Enhancement & Full API Generator

Keep in mind this generator was written as part of a bigger API generator. It is far from complete. In fact, if you are reading this, the first version of the generator is what you're seeing. Please let me know how you need it to function. I'll be happy to consider enhancements as I add to it.

Have a great day. =)

Thanks,
Fred Lackey
[email protected]


Last updated: 9/23/2015 7:48:26 PM