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:
Alex Snast
2019-08-11 08:28:19 -07:00
committed by Facebook Github Bot
parent 329b5ddf77
commit 71725de3d7
8 changed files with 71 additions and 60 deletions

View File

@@ -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)
}