go-gorm/postgres

how to add a timeout args in DSN? What's the expression?

game1991 opened this issue · 0 comments

how to add a timeout args in DSN? What's the expression?

when use postgres.Open(DSN) i want set a connect timeout args in DSN . But how do I spell this DSN ?

I use timeout=10s ,seems it doesn't work.

Expected answer