mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc: add postgres dialect for sql storage driver options
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/123 Reviewed By: alexsn Differential Revision: D18117641 fbshipit-source-id: 8e520a1b1f70c7bea70f8a37ac698116e98a804e
This commit is contained in:
committed by
Facebook Github Bot
parent
d5c111b35a
commit
e493574c83
@@ -97,7 +97,7 @@ func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) {
|
||||
return nil, errors.New("ent: multiple assignments on a unique edge \"next\"")
|
||||
}
|
||||
switch nc.driver.Dialect() {
|
||||
case dialect.MySQL, dialect.SQLite:
|
||||
case dialect.MySQL, dialect.Postgres, dialect.SQLite:
|
||||
return nc.sqlSave(ctx)
|
||||
case dialect.Gremlin:
|
||||
return nc.gremlinSave(ctx)
|
||||
|
||||
Reference in New Issue
Block a user