简体   繁体   中英

How to create typeorm entity for postgresql MATERIALIZED VIEW

I have an existing MATERIALIZED VIEW in my postgresql database. I am trying to create typeorm entity for that. Can anyone tell me how to do that. I already went through typeorm View Entities docs but it's not useful as I expected.

在这个PR中添加了支持,正如在这个答案中提到的,它是通过使用{ materialized:true }ViewEntity来解决的,在未来提供一个清晰的例子可能是一个好主意。

as of currently it is not possible to do so

here are issues thread

https://github.com/typeorm/typeorm/issues/4317

https://github.com/typeorm/typeorm/issues/3996

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM