From db0b7b8e207f55c775b6e88b4912c2647a5c9abf Mon Sep 17 00:00:00 2001 From: Kristina Kovalevskaya Date: Mon, 18 Sep 2017 18:14:44 +0300 Subject: [PATCH] Added Close method to Mock --- mock.go | 4 ++++ query.go | 1 + 2 files changed, 5 insertions(+) diff --git a/mock.go b/mock.go index 7d91fcac..060476a2 100644 --- a/mock.go +++ b/mock.go @@ -352,6 +352,10 @@ func (m *Mock) Exec(ctx context.Context, q Query) error { return err } +func (m *Mock) Close(optArgs ...CloseOpts) error { + return nil +} + func (m *Mock) newQuery(t Term, opts map[string]interface{}) (Query, error) { return newQuery(t, opts, &m.opts) } diff --git a/query.go b/query.go index 0343947c..bf4f0346 100644 --- a/query.go +++ b/query.go @@ -259,6 +259,7 @@ type QueryExecutor interface { IsConnected() bool Query(context.Context, Query) (*Cursor, error) Exec(context.Context, Query) error + Close(optArgs ...CloseOpts) error newQuery(t Term, opts map[string]interface{}) (Query, error) }