Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
Generated columns with Typorm in PostgreSQL

I want to generate a column with typeorm but it's not working, I am using PostgreSQL and I followed this article, it's said that is supported by typeorm https://wanago.io/2021/11/29/generated-columns-postgresql-typeorm/

this is an example:

import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
 
@Entity()
class User {
  @PrimaryGeneratedColumn()
  public id: number;
 
  @Column()
  public firstName: string;
 
  @Column()
  public lastName: string;
 
  @Column({
    generatedType: 'STORED',
    asExpression: `'firstName' || ' ' || 'lastName'`
  })
  fullName: string;
}

any idea how to do it ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found I was using an old version of Typeorm (@0.2.28) and the feature was supported in postgres in the version @0.2.42

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!