1.1.3 • Published 4 years ago

typeorm-sequence v1.1.3

Weekly downloads
16
License
ISC
Repository
-
Last release
4 years ago

Typeorm-sequence

Typeorm-sequence is a library that enables you to use a db sequence in a column (it works only on postgres yet, I'm implementing with others DB's).

Install via NPM

  npm i typeorm-sequence

Usage

import { Entity, Column, PrimaryColumn } from 'typeorm'
import { NextVal, EntityWithSequence } from 'typeorm-sequence'

@Entity({ name: 'client_table' })
export class Client extends EntityWithSequence {

  @NextVal('seq_client')
  @PrimaryColumn({ name: 'client_id' })
  id: number

  @Column({ name: 'client_name' })
  name: string
  constructor() {
    super()
  }
}
1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago