30

请教 Go:ent ORM 框架,分表如何操作呢?

 2 years ago
source link: https://www.v2ex.com/t/816628
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Go 编程语言

请教 Go:ent ORM 框架,分表如何操作呢?

  antxiaoye · 18 小时 32 分钟前 · 311 次点击

现在有个项目要用 Ent 做数据库操作,但是有些表做了分表,Ent 如何处理呢?总不会是每个分表 都创建一个 Schema 吧?如何能做到一个表 Schema 根据一定规则获取不同分表的数据呢?求教求教。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK