func (s *serviceMigration) ConnectDB(url string) error {
	db, err := sql.Open("postgres", url)
	if err != nil {
		return err
	}
	s.DB = db
	return migrations(db)
}
// 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 *serviceMigration) ConnectDB(url string) error {
	db, err := sql.Open("postgres", url)
	if err != nil {
		return err
	}
	s.DB = db
	return migrations(db)
}
func ( s * serviceMigration ) ConnectDB ( url string ) error { db , err := sql . Open ( " " , url ) if err != nil { return err } s . DB = db return migrations ( db ) }
SetDB sets the service to use the given DB.
SetDB sets the service to use the given DB .