@istanbul/typeorm
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

!! Not ready for production, experimental


@istanbul/typeorm

Typeorm package of istanbul framework.

Installation

npm install @istanbul/typeorm mysql

Usage

Main file

import { createApp, App } from "@istanbul/app";
import { createTypeorm } from "@istanbul/typeorm";
import { mainModule } from "./src/main.module"

const app : App = createApp(mainModule)
app.register(createTypeorm({
  /* ... typeorm options */
}))

app.start();

In module

import { createModule, Module } from "@istanbul/app";
import { registerEntity } from "@istanbul/typeorm";
import { Product } from "./product.entity";

const productModule : Module = createModule("product", {
  imports: [
    registerEntity(Product)
  ]
})

Package Sidebar

Install

npm i @istanbul/typeorm

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

7.68 kB

Total Files

12

Last publish

Collaborators

  • ssi-istanbul