We could use regular urls and let the scheme select driver. For example:
sql.RegisterScheme("foo", &driver{})
sql.RegisterScheme("oracle", &driver{})
db.OpenURL("foo://user:pass@host?foo-specific-params")
db.OpenURL("oracle://user:pass@host?oracle-specific-params")
Having a url makes it easier to handle db config in settings and flags. Like
./myapp --db=oracle://server1
[database]
db = postgresql://localhost