func NewDao(db Database) (*Dao, error) {
	if err := validate(db); err != nil {
		return nil, fmt.Errorf("creating user dao: validation: %w", err)
	}
	d := Dao{
		db: db,
	}
	return &d, nil
}
// NewDao creates a Dao on the specified database.
NewDao creates a Dao on the specified database.
// NewDao creates a Dao on the specified database .
func NewDao(db Database) (*Dao, error) {
	if err := validate(db); err != nil {
		return nil, fmt.Errorf("creating user dao: validation: %w", err)
	}
	d := Dao{
		db: db,
	}
	return &d, nil
}
func NewDao ( db Database ) ( * Dao , error ) { if err := validate ( db ) ; err != nil { return nil , fmt . Errorf ( " " , err ) } d := Dao { db : db , } return & d , nil }
NewDao creates a Dao on the specified database.
NewDao creates a Dao on the specified database .