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

@@ -82,7 +82,7 @@ type conn struct {
}
// Exec implements the dialect.Exec method.
func (c *conn) Exec(ctx context.Context, query string, args interface{}, v interface{}) error {
func (c *conn) Exec(ctx context.Context, query string, args, v interface{}) error {
vr, ok := v.(*sql.Result)
if !ok {
return fmt.Errorf("dialect/sql: invalid type %T. expect *sql.Result", v)
@@ -100,7 +100,7 @@ func (c *conn) Exec(ctx context.Context, query string, args interface{}, v inter
}
// Exec implements the dialect.Query method.
func (c *conn) Query(ctx context.Context, query string, args interface{}, v interface{}) error {
func (c *conn) Query(ctx context.Context, query string, args, v interface{}) error {
vr, ok := v.(*Rows)
if !ok {
return fmt.Errorf("dialect/sql: invalid type %T. expect *sql.Rows", v)