mirror of https://github.com/jackc/pgx.git
Fix some typos
parent
be8ed87408
commit
912b2fcc3a
|
@ -12,7 +12,7 @@ proxies, load balancers, logical replication clients, etc.
|
||||||
|
|
||||||
## v4
|
## v4
|
||||||
|
|
||||||
This is the `v4` branch. `v4` is in release candate state but is not officially released.
|
This is the `v4` branch. `v4` is in release candidate state but is not officially released.
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
|
|
4
batch.go
4
batch.go
|
@ -36,7 +36,7 @@ type BatchResults interface {
|
||||||
// QueryRow reads the results from the next query in the batch as if the query has been sent with Conn.QueryRow.
|
// QueryRow reads the results from the next query in the batch as if the query has been sent with Conn.QueryRow.
|
||||||
QueryRow() Row
|
QueryRow() Row
|
||||||
|
|
||||||
// Close closes the batch operation. Any error that occured during a batch operation may have made it impossible to
|
// Close closes the batch operation. Any error that occurred during a batch operation may have made it impossible to
|
||||||
// resyncronize the connection with the server. In this case the underlying connection will have been closed.
|
// resyncronize the connection with the server. In this case the underlying connection will have been closed.
|
||||||
Close() error
|
Close() error
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ func (br *batchResults) QueryRow() Row {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close closes the batch operation. Any error that occured during a batch operation may have made it impossible to
|
// Close closes the batch operation. Any error that occurred during a batch operation may have made it impossible to
|
||||||
// resyncronize the connection with the server. In this case the underlying connection will have been closed.
|
// resyncronize the connection with the server. In this case the underlying connection will have been closed.
|
||||||
func (br *batchResults) Close() error {
|
func (br *batchResults) Close() error {
|
||||||
if br.err != nil {
|
if br.err != nil {
|
||||||
|
|
2
doc.go
2
doc.go
|
@ -154,7 +154,7 @@ pgx also includes support for custom types implementing the database/sql.Scanner
|
||||||
interfaces.
|
interfaces.
|
||||||
|
|
||||||
If pgx does cannot natively encode a type and that type is a renamed type (e.g. type MyTime time.Time) pgx will attempt
|
If pgx does cannot natively encode a type and that type is a renamed type (e.g. type MyTime time.Time) pgx will attempt
|
||||||
to encode the underlying type. While this is usually desired behavior it can produce suprising behavior if one the
|
to encode the underlying type. While this is usually desired behavior it can produce surprising behavior if one the
|
||||||
underlying type and the renamed type each implement database/sql interfaces and the other implements pgx interfaces. It
|
underlying type and the renamed type each implement database/sql interfaces and the other implements pgx interfaces. It
|
||||||
is recommended that this situation be avoided by implementing pgx interfaces on the renamed type.
|
is recommended that this situation be avoided by implementing pgx interfaces on the renamed type.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue