photoprism/pkg/dsn/parse.go
Michael Mayer 06df64281d Config: Move database DSN-related functionality to "pkg/dsn" #47 #5285
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-11-03 13:40:34 +01:00

8 lines
173 B
Go

package dsn
// Parse creates a new DSN struct containing the parsed data from the specified string.
func Parse(dsn string) DSN {
d := DSN{DSN: dsn}
d.parse()
return d
}