SessionRunner can do anything that a Session can except start a transaction. Both Session and Tx implements this interface.
| 86 | // SessionRunner can do anything that a Session can except start a transaction. |
| 87 | // Both Session and Tx implements this interface. |
| 88 | type SessionRunner interface { |
| 89 | Select(column ...interface{}) *SelectBuilder |
| 90 | SelectBySql(query string, value ...interface{}) *SelectBuilder |
| 91 | |
| 92 | InsertInto(table string) *InsertBuilder |
| 93 | InsertBySql(query string, value ...interface{}) *InsertBuilder |
| 94 | |
| 95 | Update(table string) *UpdateBuilder |
| 96 | UpdateBySql(query string, value ...interface{}) *UpdateBuilder |
| 97 | |
| 98 | DeleteFrom(table string) *DeleteBuilder |
| 99 | DeleteBySql(query string, value ...interface{}) *DeleteBuilder |
| 100 | } |
| 101 | |
| 102 | type Runner interface { |
| 103 | GetTimeout() time.Duration |
no outgoing calls
no test coverage detected
searching dependent graphs…