npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

sample-schema

0.0.1

@tjholowaychuk

npmHomeRepoSnykSocket
Downloads:1
$ npm install sample-schema
DailyWeeklyMonthlyYearly

sample-schema

Produce a schema from multiple objects over time.

Installation

$ npm install sample-schema

Example

var Sampler = require('sample-schema');
var sampler = new Sampler;

sampler.add({ foo: 123 });
sampler.add({ foo: 123, bar: 123 });
sampler.add({ baz: 123, something: 'here' });

yields:

{
  foo: 'float',
  bar: 'float',
  baz: 'float',
  something: 'varchar(2048)'
}

License

MIT