Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
/ typeorm Public archive

Typeorm package for galatajs Framework

License

Notifications You must be signed in to change notification settings

galatajs/typeorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Image

@galatajs/typeorm

Typeorm package of galatajs framework.

Installation

npm install @galatajs/typeorm mysql

Usage

Main file

import { createApp, App } from "@galatajs/app";
import { createTypeorm } from "@galatajs/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 "@galatajs/app";
import { registerEntity } from "@galatajs/typeorm";
import { Product } from "./product.entity";

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

About

Typeorm package for galatajs Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published