Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDriverName ¶
GetDriverName returns the driver name of a given DSN.
func Join ¶
Join joins driver name(scheme) and dsn without schema into a single path, separating them with slashes.
func Masking ¶
Masking hiding original username and password with character '*' [user[:password]@][net[(addr)]]/dbname[?param1=value1¶mN=valueN]
func Split ¶
Split splits dsn into a driver name(scheme) and left component. If there is no :// in dsn, Split returns an empty driver name and dsn without schema. The returned values have the property that dsn = driver+dsnSchemaOmitted. schema://[user[:password]@][net[(addr)]]/dbname[?param1=value1¶mN=valueN] => [user[:password]@][net[(addr)]]/dbname[?param1=value1¶mN=valueN]
Types ¶
This section is empty.