Package cloud.google.com/go/cloudsqlconn/postgres/pgxv4 (v1.21.0)

Package pgxv4 provides a Cloud SQL Postgres driver that uses pgx v4 and works with the database/sql package.

Deprecated: pgxv4 is no longer maintained because pgproto3 has reached end-of-life. This package has been rewired to use pgxv5 internally for security reasons. Please use pgxv5 directly instead.

Functions

func RegisterDriver (deprecated)

  func 
  
 RegisterDriver 
 ( 
 name 
  
  string 
 
 , 
  
 opts 
  
 ... 
  cloudsqlconn 
 
 . 
  Option 
 
 ) 
  
 ( 
 func 
 () 
  
  error 
 
 , 
  
  error 
 
 ) 
 

RegisterDriver registers a Postgres driver that uses the cloudsqlconn.Dialer configured with the provided options. The choice of name is entirely up to the caller and may be used to distinguish between multiple registrations of differently configured Dialers. The driver now uses pgx/v5 internally. RegisterDriver returns a cleanup function that should be called one the database connection is no longer needed.

Deprecated: pgxv4 is no longer maintained because pgproto3 has reached end-of-life. This function now uses pgxv5 internally for security reasons. Please use pgxv5.RegisterDriver instead.

Design a Mobile Site
View Site in Mobile | Classic
Share by: