labbsr0x / whisper

A cloud-native Identity and OAuth Provider implemented with Golang and ORY Hydra
MIT License
12 stars 4 forks source link

Fixing parsing #20

Closed claudiosegala closed 5 years ago

claudiosegala commented 5 years ago

Fix #19

net/url:Parse function was unable to parse "mysql://root:secret@tcp(localhost:3306)/whisper?charset=utf8mb4&parseTime=True&loc=Local"

claudiosegala commented 5 years ago

Solution: remove net/url:Parse function and removing scheme by hand.

eabili0 commented 5 years ago

Could you please rewrite the connection string with a regex?

claudiosegala commented 5 years ago

Since the goal is to remove the schema and should give an error in case of schemas different from mysql. I think this approach is the best, other approaches would just be more complex without providing anything new.