(ctx context.Context, query interface{}, args ...interface{})
| 127 | } |
| 128 | |
| 129 | func (b *sqlBuilder) IteratorContext(ctx context.Context, query interface{}, args ...interface{}) db.Iterator { |
| 130 | rows, err := b.QueryContext(ctx, query, args...) |
| 131 | return &iterator{b.sess, rows, err} |
| 132 | } |
| 133 | |
| 134 | func (b *sqlBuilder) Prepare(query interface{}) (*sql.Stmt, error) { |
| 135 | return b.PrepareContext(b.sess.Context(), query) |