// defaultOptions sets the default options.
// Note: this is called (first) even if you open a connection with parameters.
defaultOptions sets the default options.
Note: this is called (first) even if you open a connection with parameters.
// defaultOptions sets the default options . // Note : this is called ( first ) even if you open a connection with parameters .
func defaultOptions(user, database, password string) *pg.Options {
	opts := &pg.Options{
		User:     user,
		Database: database,
		Password: password,
		TLSConfig: &tls.Config{
			InsecureSkipVerify: true,
		},
		MaxRetries:      1,
		MinRetryBackoff: -1,
		DialTimeout:  30 * time.Second,
		ReadTimeout:  10 * time.Second,
		WriteTimeout: 10 * time.Second,
		PoolSize:           10,
		MaxConnAge:         10 * time.Second,
		PoolTimeout:        30 * time.Second,
		IdleTimeout:        10 * time.Second,
		IdleCheckFrequency: 100 * time.Millisecond,
	}
	LoadCertificate(opts)
	return opts
}
func defaultOptions ( user , database , password string ) * pg . Options { opts := & pg . Options { User : user , Database : database , Password : password , TLSConfig : & tls . Config { InsecureSkipVerify : true , } , MaxRetries : 1 , MinRetryBackoff : - 1 , DialTimeout : 30 * time . Second , ReadTimeout : 10 * time . Second , WriteTimeout : 10 * time . Second , PoolSize : 10 , MaxConnAge : 10 * time . Second , PoolTimeout : 30 * time . Second , IdleTimeout : 10 * time . Second , IdleCheckFrequency : 100 * time . Millisecond , } LoadCertificate ( opts ) return opts }
defaultOptions sets the default options.
defaultOptions sets the default options .