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