npm

Need private packages and team management tools?Check out npm Orgs. »

oly-orm

1.0.0 • Public • Published

oly orm

https://github.com/typeorm/typeorm

import { Kernel } from "oly";
import { id, column, Repository } from "oly-orm";
 
class Article {
  @id() id?: number;
  @column() title: string;
}
 
class ArticleRepository extends Repository.of(Article) {
}
 
const k = Kernel.create({DATABASE_URL: ":memory:"});
const a = k.get(ArticleRepository);
 
await k.start();
await a.insert({title: "Hi!"});

install

npm i oly-orm

Downloadsweekly downloads

3

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability