func (db *Database) GetPool(name string) (*Pool, error) {
	name = strings.ToLower(name)
	db.namedLock.RLock(name)
	defer db.namedLock.RUnlock(name)
	var pool Pool
	return &pool, db.db.Model(&Pool{}).Where("name = ?", name).First(&pool).Error
}
// GetPool returns a pool by its index name
GetPool returns a pool by its index name
// GetPool returns a pool by its index name
func (db *Database) GetPool(name string) (*Pool, error) {
	name = strings.ToLower(name)
	db.namedLock.RLock(name)
	defer db.namedLock.RUnlock(name)
	var pool Pool
	return &pool, db.db.Model(&Pool{}).Where("name = ?", name).First(&pool).Error
}
func ( db * Database ) GetPool ( name string ) ( * Pool , error ) { name = strings . ToLower ( name ) db . namedLock . RLock ( name ) defer db . namedLock . RUnlock ( name ) var pool Pool return & pool , db . db . Model ( & Pool { } ) . Where ( " " , name ) . First ( & pool ) . Error }
GetPool returns a pool by its index name
GetPool returns a pool by its index name