code: func DjangoSessionsByExpireDate(db XODB, expireDate *time.Time) ([]*DjangoSession, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`session_key, session_data, expire_date ` +
  		`FROM django.django_session ` +
  		`WHERE expire_date = ?`
  
  	// run query
  	XOLog(sqlstr, expireDate)
  	q, err := db.Query(sqlstr, expireDate)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*DjangoSession{}
  	for q.Next() {
  		ds := DjangoSession{
  			_exists: true,
  		}
  
  		// scan
  		err = q.Scan(&ds.SessionKey, &ds.SessionData, &ds.ExpireDate)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &ds)
  	}
  
  	return res, nil
  }
docs: // DjangoSessionsByExpireDate retrieves a row from 'django.django_session' as a DjangoSession.
  //
  // Generated from index 'django_session_de54fa62'.