Skip to content

vcliment89/pocostick

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pocostick

I though it was really annoying to write poco class in Typescript, so i made up a small library for that.

It simply connects to your database, reads your tables and columns, and generates classes for you, that can be used later.

The library is intended to be used with Typescript... But should easily integrate with a gulp for instance.

Supported drivers

  • mssql
  • mysql

Installation

npm install --save pocostick

Typescript example

import Pocostick from "pocostick";

new Pocostick({
    host: "localhost",
    user: "pocostick",
    password: "pocostick",
    database: "pocostick",
    driver: "mysql",
    output: "./models/"
}).generate(() => process.exit(0));

Javascript example

var Pocostick = require("pocostick");

new Pocostick.default({
    host: "localhost",
    user: "pocostick",
    password: "pocostick",
    database: "pocostick",
    driver: "mysql",
    output: "./models/"
}).generate(function () {
    process.exit(0);
});

About

Typescript mysql poco generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%