bun icon indicating copy to clipboard operation
bun copied to clipboard

Allow string array in WithConnParams

Open mik-volkov opened this issue 2 years ago • 3 comments

#611 This PR allows multiple parameters to WithConnParams in the form of string slice

		pgdriver.WithConnParams(map[string]interface{}{
			"search_path": []string{"foo", "bar"},
		}),

mik-volkov avatar Dec 26 '22 03:12 mik-volkov

This PR assumes that []string{"foo", "bar"} can be appended as is and does not require any quotation which might not be the case.

vmihailenco avatar Dec 26 '22 10:12 vmihailenco

Added quotation to parameters processing

mik-volkov avatar Dec 26 '22 14:12 mik-volkov

could you please merge this? I met the same issue, thanks

qindj avatar Oct 24 '23 23:10 qindj