oly-orm
TypeScript icon, indicating that this package has built-in type declarations

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!"});

Readme

Keywords

Package Sidebar

Install

npm i oly-orm

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

30.6 kB

Total Files

30

Last publish

Collaborators

  • nolyme