From 6d313aa15fb5a67f1e86366781e042fd35cd3429 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 27 Feb 2015 22:37:41 +0800 Subject: [PATCH] fix #985 --- orm/orm.go | 4 ---- orm/types.go | 1 - 2 files changed, 5 deletions(-) diff --git a/orm/orm.go b/orm/orm.go index cdb7f27c..f881433b 100644 --- a/orm/orm.go +++ b/orm/orm.go @@ -489,10 +489,6 @@ func (o *orm) Driver() Driver { return driver(o.alias.Name) } -func (o *orm) GetDB() dbQuerier { - panic(ErrNotImplement) -} - // create new orm func NewOrm() Ormer { BootStrap() // execute only once diff --git a/orm/types.go b/orm/types.go index c342e1c2..b46be4fc 100644 --- a/orm/types.go +++ b/orm/types.go @@ -51,7 +51,6 @@ type Ormer interface { Rollback() error Raw(string, ...interface{}) RawSeter Driver() Driver - GetDB() dbQuerier } // insert prepared statement