func (e EmbeddedData) sqlFiles() ([]io.Reader, error) {
	sqlFileNames := []string{
		"users",
		"user_create",
		"user_read",
		"user_update_password",
		"user_update_points_increment",
		"user_delete",
	}
	userSQLFiles := make([]io.Reader, len(sqlFileNames))
	for i, n := range sqlFileNames {
		n = fmt.Sprintf("%s.sql", n)
		f, err := e.SQLFS.Open(n)
		if err != nil {
			return nil, fmt.Errorf("opening setup file %v: %w", n, err)
		}
		userSQLFiles[i] = f
	}
	return userSQLFiles, nil
}
// sqlFiles opens the SQL files needed to manage user data.
sqlFiles opens the SQL files needed to manage user data.
// sqlFiles opens the SQL files needed to manage user data .
func (e EmbeddedData) sqlFiles() ([]io.Reader, error) {
	sqlFileNames := []string{
		"users",
		"user_create",
		"user_read",
		"user_update_password",
		"user_update_points_increment",
		"user_delete",
	}
	userSQLFiles := make([]io.Reader, len(sqlFileNames))
	for i, n := range sqlFileNames {
		n = fmt.Sprintf("%s.sql", n)
		f, err := e.SQLFS.Open(n)
		if err != nil {
			return nil, fmt.Errorf("opening setup file %v: %w", n, err)
		}
		userSQLFiles[i] = f
	}
	return userSQLFiles, nil
}
func ( e EmbeddedData ) sqlFiles ( ) ( [ ] io . Reader , error ) { sqlFileNames := [ ] string { " " , " " , " " , " " , " " , " " , } userSQLFiles := make ( [ ] io . Reader , len ( sqlFileNames ) ) for i , n := range sqlFileNames { n = fmt . Sprintf ( " " , n ) f , err := e . SQLFS . Open ( n ) if err != nil { return nil , fmt . Errorf ( " " , n , err ) } userSQLFiles [ i ] = f } return userSQLFiles , nil }
sqlFiles opens the SQL files needed to manage user data.
sqlFiles opens the SQL files needed to manage user data .