1.0.6 • Published 7 years ago

typeorm-indexed v1.0.6

Weekly downloads
25
License
-
Repository
-
Last release
7 years ago
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm-indexed';
@Entity()
export class App {
  @PrimaryGeneratedColumn()
  appId: number;

  @Column()
  name: string;

  @Column()
  title: string;

  @Column()
  desc: string;

  @Column()
  keyword: string;

  @Column()
  pages: any;
}

使用

import Manager, { createConnection, select } from 'typeorm-indexed';
import Tables from './entity';
createConnection({
  name: 'design',
  version: 2,
  entities: [...Tables],
}).subscribe();

Manager.ready().subscribe(res => {
  if (res) {
    select('Handler')
      .save({ name: 'test', body: 'body2' })
      .subscribe();
  }
});

操作单条数据

import { update, insert, get, remove } from 'typeorm-indexed';
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago