...

Source file src/github.com/jackc/pgconn/doc.go

Documentation: github.com/jackc/pgconn

     1  // Package pgconn is a low-level PostgreSQL database driver.
     2  /*
     3  pgconn provides lower level access to a PostgreSQL connection than a database/sql or pgx connection. It operates at
     4  nearly the same level is the C library libpq.
     5  
     6  Establishing a Connection
     7  
     8  Use Connect to establish a connection. It accepts a connection string in URL or DSN and will read the environment for
     9  libpq style environment variables.
    10  
    11  Executing a Query
    12  
    13  ExecParams and ExecPrepared execute a single query. They return readers that iterate over each row. The Read method
    14  reads all rows into memory.
    15  
    16  Executing Multiple Queries in a Single Round Trip
    17  
    18  Exec and ExecBatch can execute multiple queries in a single round trip. They return readers that iterate over each query
    19  result. The ReadAll method reads all query results into memory.
    20  
    21  Context Support
    22  
    23  All potentially blocking operations take a context.Context. If a context is canceled while the method is in progress the
    24  method immediately returns. In most circumstances, this will close the underlying connection.
    25  
    26  The CancelRequest method may be used to request the PostgreSQL server cancel an in-progress query without forcing the
    27  client to abort.
    28  */
    29  package pgconn
    30  

View as plain text