remove unused method
This commit is contained in:
parent
13fa0d5b32
commit
dcc529b68a
|
@ -1258,13 +1258,6 @@ func (engine *Engine) Query(sql string, paramStr ...interface{}) (resultsSlice [
|
|||
return session.Query(sql, paramStr...)
|
||||
}
|
||||
|
||||
// Exec a raw sql and return records as []map[string]string
|
||||
func (engine *Engine) Q(sql string, paramStr ...interface{}) (resultsSlice []map[string]string, err error) {
|
||||
session := engine.NewSession()
|
||||
defer session.Close()
|
||||
return session.Q(sql, paramStr...)
|
||||
}
|
||||
|
||||
// Insert one or more records
|
||||
func (engine *Engine) Insert(beans ...interface{}) (int64, error) {
|
||||
session := engine.NewSession()
|
||||
|
|
13
session.go
13
session.go
|
@ -1970,19 +1970,6 @@ func query2(db *core.DB, sqlStr string, params ...interface{}) (resultsSlice []m
|
|||
return rows2Strings(rows)
|
||||
}
|
||||
|
||||
// Exec a raw sql and return records as []map[string]string
|
||||
func (session *Session) Q(sqlStr string, paramStr ...interface{}) (resultsSlice []map[string]string, err error) {
|
||||
err = session.newDb()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer session.resetStatement()
|
||||
if session.IsAutoClose {
|
||||
defer session.Close()
|
||||
}
|
||||
return session.query2(sqlStr, paramStr...)
|
||||
}
|
||||
|
||||
// insert one or more beans
|
||||
func (session *Session) Insert(beans ...interface{}) (int64, error) {
|
||||
var affected int64 = 0
|
||||
|
|
Loading…
Reference in New Issue