mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
implement graph database migrate command
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1281 Reviewed By: a8m Differential Revision: D16757606 fbshipit-source-id: 89ad3cdf7b9a7c9931ac8e2b20f127a1cc125d62
This commit is contained in:
committed by
Facebook Github Bot
parent
329b5ddf77
commit
71725de3d7
@@ -23,7 +23,7 @@ func NewDriver(c *Client) *Driver {
|
||||
func (Driver) Dialect() string { return dialect.Neptune }
|
||||
|
||||
// Exec implements the dialect.Exec method.
|
||||
func (c *Driver) Exec(ctx context.Context, query string, args interface{}, v interface{}) error {
|
||||
func (c *Driver) Exec(ctx context.Context, query string, args, v interface{}) error {
|
||||
vr, ok := v.(*Response)
|
||||
if !ok {
|
||||
return fmt.Errorf("dialect/gremlin: invalid type %T. expect *gremlin.Response", v)
|
||||
@@ -41,7 +41,7 @@ func (c *Driver) Exec(ctx context.Context, query string, args interface{}, v int
|
||||
}
|
||||
|
||||
// Query implements the dialect.Query method.
|
||||
func (c *Driver) Query(ctx context.Context, query string, args interface{}, v interface{}) error {
|
||||
func (c *Driver) Query(ctx context.Context, query string, args, v interface{}) error {
|
||||
return c.Exec(ctx, query, args, v)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user