You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: users_dao.go
    path of file: ./repos/teamgram-server/app/service/biz/user/internal/dal/dao/mysql_dao
    
    the code of the file until where you have to start completion: /*
 * WARNING! All changes made in this file will be lost!
 *   Created from by 'dalgen'
 *
 * Copyright (c) 2024-present,  Teamgram Authors.
 *  All rights reserved.
 *
 * Author: teamgramio (teamgram.io@gmail.com)
 */

package mysql_dao

import (
	"context"
	"database/sql"
	"fmt"
	"strings"

	"github.com/teamgram/marmota/pkg/stores/sqlx"
	"github.com/teamgram/teamgram-server/app/service/biz/user/internal/dal/dataobject"

	"github.com/zeromicro/go-zero/core/logx"
)

var _ *sql.Result
var _ = fmt.Sprintf
var _ = strings.Join

type UsersDAO struct {
	db *sqlx.DB
}

func NewUsersDAO(db *sqlx.DB
    
func (dao *UsersDAO) SelectBotsWithCB(ctx context.Context, id_list []int64, cb func(i int, v int64)) (rList []int64, err error) {
	var (
		query = "select id from users where id in (?) and is_bot = 1"
		a     []interface{}
	)
	if len(id_list) == 0 {
		rList = []int64{}
		return
	}

	query, a, err = sqlx.In(query, id_list)
	if err != nil {
		// r sql.Result
		logx.WithContext(ctx).Errorf("sqlx.In in SelectBots(_), error: %v", err)
		return
	}

	err = dao.db.QueryRowsPartial(ctx, &rList, query, a...)

	if err != nil {
		logx.WithContext(ctx).Errorf("select in SelectBots(_), error: %v", err)
	}

	if cb != nil {
		for i := 0; i < len(rList); i++ {
			cb(i, rList[i])
		}
	}

	return
}