mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user