WIP add connection string parser
This commit is contained in:
parent
d950b10b50
commit
dc1674ec55
21
internal/storage/parse.go
Normal file
21
internal/storage/parse.go
Normal file
@ -0,0 +1,21 @@
|
||||
package storage
|
||||
|
||||
const (
|
||||
DBTYPE_MEM = iota
|
||||
DBTYPE_GDBM
|
||||
DBTYPE_POSTGRES
|
||||
)
|
||||
|
||||
type connData struct {
|
||||
typ int
|
||||
str string
|
||||
}
|
||||
|
||||
func toConnData(s string) connData {
|
||||
var o connData
|
||||
|
||||
if s == "" {
|
||||
return o
|
||||
}
|
||||
return o
|
||||
}
|
Loading…
Reference in New Issue
Block a user