func (s *serviceFaculty) ConnectDB(url string) error {
	db, err := sql.Open("postgres", url)
	if err == nil {
		s.DB = db
	}
	return err
}
// SetDB sets the service to use the given DB.
// Note that this function overwrites the current value.
//
SetDB sets the service to use the given DB.
Note that this function overwrites the current value.
// SetDB sets the service to use the given DB . // Note that this function overwrites the current value . //
func (s *serviceFaculty) ConnectDB(url string) error {
	db, err := sql.Open("postgres", url)
	if err == nil {
		s.DB = db
	}
	return err
}
func ( s * serviceFaculty ) ConnectDB ( url string ) error { db , err := sql . Open ( " " , url ) if err == nil { s . DB = db } return err }
SetDB sets the service to use the given DB.
SetDB sets the service to use the given DB .